From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15071 invoked by alias); 25 Feb 2011 09:19:59 -0000 Received: (qmail 15062 invoked by uid 22791); 25 Feb 2011 09:19:58 -0000 X-SWARE-Spam-Status: No, hits=-5.6 required=5.0 tests=AWL,BAYES_00,KAM_STOCKGEN,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 25 Feb 2011 09:19:48 +0000 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p1P9Jl3j006665 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 25 Feb 2011 04:19:47 -0500 Received: from host1.dyn.jankratochvil.net (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p1P9JiNU008743 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 25 Feb 2011 04:19:46 -0500 Received: from host1.dyn.jankratochvil.net (localhost [127.0.0.1]) by host1.dyn.jankratochvil.net (8.14.4/8.14.4) with ESMTP id p1P9JiVQ005100; Fri, 25 Feb 2011 10:19:44 +0100 Received: (from jkratoch@localhost) by host1.dyn.jankratochvil.net (8.14.4/8.14.4/Submit) id p1P9Jhve005099; Fri, 25 Feb 2011 10:19:43 +0100 Date: Fri, 25 Feb 2011 09:19:00 -0000 From: Jan Kratochvil To: Tom Tromey Cc: Michael Snyder , "gdb@sourceware.org" Subject: Re: question, re: gdb.base/label.exp Message-ID: <20110225091943.GA1314@host1.dyn.jankratochvil.net> References: <4D658D9B.80207@vmware.com> <4D66A1A8.2010503@vmware.com> <20110224192603.GA22762@host1.dyn.jankratochvil.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2011-02/txt/msg00142.txt.bz2 On Thu, 24 Feb 2011 21:09:39 +0100, Tom Tromey wrote: > >>>>> "Jan" == Jan Kratochvil writes: > > Jan> The question is if we say this GCC is broken (and XFAIL it or move it to > Jan> gdb.dwarf2/) or whether GDB should use SYMBOL_VALUE_ADDRESS. > > Jan> I am for the latter, DWARF talks for DW_TAG_label about > Jan> DW_AT_low_pc and not about DW_AT_decl_line. > > Yes, I also think that makes sense. Just it will not work on reload of the executable changed underneath where PCs change as EXPLICIT_PC needs to be in charge. But it already does not work now for `run': echo 'main(){l:;}'|gcc -g -x c -;../gdb -nx ./a.out [...] (gdb) start [...] (gdb) b l [...] (gdb) cont Continuing. Program exited with code 070. (gdb) run Starting program: .../a.out Error in re-setting breakpoint 2: Function "l" not defined. symtab_and_line->symtab is too general, there should be symtab_and_line->block. Regards, Jan