Received: from eggs.gnu.org ([2001:4830:134:3::10]:50834) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UuqLO-0004vy-Tr for qemu-devel@nongnu.org; Thu, 04 Jul 2013 16:41:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UuqLM-0002Nq-Ba for qemu-devel@nongnu.org; Thu, 04 Jul 2013 16:41:34 -0400 Received: from mail-pd0-x22b.google.com ([2607:f8b0:400e:c02::22b]:63903) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UuqLM-0002Nm-4y for qemu-devel@nongnu.org; Thu, 04 Jul 2013 16:41:32 -0400 Received: by mail-pd0-f171.google.com with SMTP id y14so1367678pdi.2 for ; Thu, 04 Jul 2013 13:41:31 -0700 (PDT) Sender: Richard Henderson From: Richard Henderson Date: Thu, 4 Jul 2013 13:40:59 -0700 Message-Id: <1372970462-10338-13-git-send-email-rth@twiddle.net> In-Reply-To: <1372970462-10338-1-git-send-email-rth@twiddle.net> References: <1372970462-10338-1-git-send-email-rth@twiddle.net> Subject: [Qemu-devel] [PATCH v4 12/15] tcg: Fix high_pc fields in .debug_info List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, aliguori@us.ibm.com 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. Reviewed-by: Peter Maydell 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 c7e6567..42dc958 100644 --- a/tcg/tcg.c +++ b/tcg/tcg.c @@ -2657,9 +2657,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. -- 1.8.1.4