This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: question, re: gdb.base/label.exp
- From: Tom Tromey <tromey at redhat dot com>
- To: Edjunior Barbosa Machado <emachado at linux dot vnet dot ibm dot com>
- Cc: gdb at sourceware dot org
- Date: Tue, 29 Mar 2011 08:54:29 -0600
- Subject: Re: question, re: gdb.base/label.exp
- References: <4D658D9B.80207@vmware.com> <m37hcph4xc.fsf@fleche.redhat.com> <4D66A1A8.2010503@vmware.com> <20110224192603.GA22762@host1.dyn.jankratochvil.net> <m3ei6xdwjg.fsf@fleche.redhat.com> <20110225091943.GA1314@host1.dyn.jankratochvil.net> <4D91EE45.10407@linux.vnet.ibm.com>
>>>>> "Edjunior" == Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com> writes:
Edjunior> just clarifying, this means it should be fixed on gcc anyway?
Edjunior> I also ran into the same problem on RHEL5 and, although the
Edjunior> testcase passes ok on RHEL6, DW_AT_decl_line for label 'here'
Edjunior> still seems incorrect (16, instead of 9).
I changed this code in GDB this past week. Now GDB looks at the label's
DW_AT_low_pc, not DW_AT_decl_line.
I don't know whether there are bugs with this in older versions of GCC.
Tom