From patchwork Thu Jul 4 20:40:59 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 257013 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 07FA42C0090 for ; Fri, 5 Jul 2013 06:47:54 +1000 (EST) Received: from localhost ([::1]:40316 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UuqRT-0005wG-Iy for incoming@patchwork.ozlabs.org; Thu, 04 Jul 2013 16:47:51 -0400 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) 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=Ra1UJIqdFHOmqMeUtnxdRqe3RuL094/WkA3G85kvcsk=; b=e9kfJmsOywBvQgR/yv8Nq98/PUYThAy3Vgu+OpErzxRe2ZDmEfKn7ni50eKWtXNYBM Nju9tgkrGoqzJ9aViHeZauEPVQFyDmbDGInM38l9TMRm7xl/BdHHzwdk4ZJJ3nRYwP86 TgVWpyxGZiCLMS1heo0CMeNtZM/eYVE/UAzI2AyrJLBZkStY+12i4QJ94iX8FAfmf2XZ XTI5P5irE84F1pzKwd/KY/pjJjCE/pJYEZQ3dcmpiNBFYHjFS8l8ePi5OIwwieBguSlF oSL1xWYvQ4TibTCzx1/cG+xBztuCP/gZFhZ07cxCRWuadDJujvRt82PdWTyFlVdcHU8f irVw== X-Received: by 10.68.131.168 with SMTP id on8mr6893582pbb.97.1372970491345; Thu, 04 Jul 2013 13:41:31 -0700 (PDT) Received: from fremont.twiddle.net (50-194-63-110-static.hfc.comcastbusiness.net. [50.194.63.110]) by mx.google.com with ESMTPSA id pb5sm4093184pbc.29.2013.07.04.13.41.29 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 04 Jul 2013 13:41:30 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Thu, 4 Jul 2013 13:40:59 -0700 Message-Id: <1372970462-10338-13-git-send-email-rth@twiddle.net> X-Mailer: git-send-email 1.8.1.4 In-Reply-To: <1372970462-10338-1-git-send-email-rth@twiddle.net> References: <1372970462-10338-1-git-send-email-rth@twiddle.net> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400e:c02::22b Cc: peter.maydell@linaro.org, aliguori@us.ibm.com Subject: [Qemu-devel] [PATCH v4 12/15] 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. 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.