From patchwork Wed Jun 5 17:29:25 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 249152 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 2C7142C0099 for ; Thu, 6 Jun 2013 03:31:05 +1000 (EST) Received: from localhost ([::1]:44897 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UkHY7-0003lT-7s for incoming@patchwork.ozlabs.org; Wed, 05 Jun 2013 13:31:03 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42452) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UkHXI-0003Yn-LP for qemu-devel@nongnu.org; Wed, 05 Jun 2013 13:30:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UkHXA-0001f0-7P for qemu-devel@nongnu.org; Wed, 05 Jun 2013 13:30:12 -0400 Received: from mail-qe0-f41.google.com ([209.85.128.41]:63504) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UkHXA-0001e9-4F for qemu-devel@nongnu.org; Wed, 05 Jun 2013 13:30:04 -0400 Received: by mail-qe0-f41.google.com with SMTP id b4so1248114qen.0 for ; Wed, 05 Jun 2013 10:30:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; bh=0TDMANq4nF1okE7f25VUUj2XztPlNW8Y5rCRBk4eS+s=; b=FX8BLXsBWlTCYYWPc/G6vPqUCL6SSZcYBy7/d60BaItrdhjP9nmIV8mf5RUcF1/Qhg hCyG6IdqvXVJG36QjaIvSP2oGinYjT7LHBP50CSW9/E3urpiR9u+gUuWTGScz2AYQLww osnibrYKqmSafS7LuQZ8fzO+F2VIpaVrWWhFzZIESmBuyM8iVKZgZDaKH7lZRjvae0Ve 5MyWXR7NYzMmCZhDde8rT3nOwrKEGK4WnOspSwLI4xFlXTDq6Fj/TETyny5JofA3lHAI XeQoRLB2MbBg/jmsGU9N3YS2KJ8wniXloay1qMfr2f0KaWXOQjAfXimc44k0n/ocs8sw lQQw== X-Received: by 10.229.178.69 with SMTP id bl5mr3762442qcb.40.1370453403737; Wed, 05 Jun 2013 10:30:03 -0700 (PDT) Received: from anchor.com (50-194-63-110-static.hfc.comcastbusiness.net. [50.194.63.110]) by mx.google.com with ESMTPSA id w7sm74024878qej.7.2013.06.05.10.30.02 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 05 Jun 2013 10:30:03 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Wed, 5 Jun 2013 10:29:25 -0700 Message-Id: <1370453368-21214-2-git-send-email-rth@twiddle.net> X-Mailer: git-send-email 1.8.1.4 In-Reply-To: <1370453368-21214-1-git-send-email-rth@twiddle.net> References: <1370453368-21214-1-git-send-email-rth@twiddle.net> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.128.41 Cc: aurelien@aurel32.net Subject: [Qemu-devel] [PATCH v2 1/4] tcg: Fix high_pc fields in .debug_info X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org I don't think the debugger actually looks at this for anything, using the correct .debug_frame contents, but might as well get it all correct. Signed-off-by: Richard Henderson --- tcg/tcg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tcg/tcg.c b/tcg/tcg.c index 1d8099c..8ea43b3 100644 --- a/tcg/tcg.c +++ b/tcg/tcg.c @@ -2659,9 +2659,9 @@ static void tcg_register_jit_int(void *buf_ptr, size_t buf_size, img->sym[1].st_size = buf_size; img->di.cu_low_pc = buf; - img->di.cu_high_pc = buf_size; + img->di.cu_high_pc = buf + buf_size; img->di.fn_low_pc = buf; - img->di.fn_high_pc = buf_size; + img->di.fn_high_pc = buf + buf_size; #ifdef DEBUG_JIT /* Enable this block to be able to debug the ELF image file creation.