From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20435 invoked by alias); 15 Sep 2014 08:57:31 -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 20423 invoked by uid 89); 15 Sep 2014 08:57:30 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_50,RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mx2.suse.de Received: from cantor2.suse.de (HELO mx2.suse.de) (195.135.220.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (CAMELLIA256-SHA encrypted) ESMTPS; Mon, 15 Sep 2014 08:57:29 +0000 Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id D821CAB13; Mon, 15 Sep 2014 08:57:25 +0000 (UTC) From: Andreas Schwab To: Yao Qi 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> <87r3zd4p2f.fsf@codesourcery.com> X-Yow: .. does your DRESSING ROOM have enough ASPARAGUS? Date: Mon, 15 Sep 2014 08:57:00 -0000 In-Reply-To: <87r3zd4p2f.fsf@codesourcery.com> (Yao Qi's message of "Mon, 15 Sep 2014 10:04:08 +0800") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SW-Source: 2014-09/txt/msg00494.txt.bz2 Yao Qi writes: > Andreas Schwab writes: > >> (gdb) p main_label >> $1 = {} 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. That would work. (gdb) p main_label - main $1 = 12 Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."