From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4533 invoked by alias); 15 Sep 2014 02:09:06 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 973 invoked by uid 89); 15 Sep 2014 02:08:31 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.3 required=5.0 tests=AWL,BAYES_50 autolearn=no version=3.3.2 X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 15 Sep 2014 02:08:29 +0000 Received: from svr-orw-fem-04.mgc.mentorg.com ([147.34.97.41]) by relay1.mentorg.com with esmtp id 1XTLiM-0007TE-6U from Yao_Qi@mentor.com ; Sun, 14 Sep 2014 19:08:26 -0700 Received: from GreenOnly (147.34.91.1) by svr-orw-fem-04.mgc.mentorg.com (147.34.97.41) with Microsoft SMTP Server id 14.3.181.6; Sun, 14 Sep 2014 19:08:25 -0700 From: Yao Qi To: Andreas Schwab CC: Subject: Re: [PATCH] Fix gdb.dwarf2/dwz.exp for thumb mode References: <87siju7816.fsf@igel.home> <87bnqil1bb.fsf@codesourcery.com> <87ha0a6x95.fsf@igel.home> Date: Mon, 15 Sep 2014 02:09:00 -0000 In-Reply-To: <87ha0a6x95.fsf@igel.home> (Andreas Schwab's message of "Sun, 14 Sep 2014 17:24:22 +0200") Message-ID: <87r3zd4p2f.fsf@codesourcery.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2014-09/txt/msg00488.txt.bz2 Andreas Schwab writes: > (gdb) p main_label=20 > $1 =3D {} 0x100004e0 <.main+12> How about getting the offset by 'p main_label - main'? It also fixes the zero-offset problem you pointed out in another mail. --=20 Yao (=E9=BD=90=E5=B0=A7)