This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: question, re: gdb.base/label.exp
On Thu, 24 Feb 2011 19:21:28 +0100, Michael Snyder wrote:
> <2><16e>: Abbrev Number: 8 (DW_TAG_label)
> DW_AT_name : here
> DW_AT_decl_file : 1
> DW_AT_decl_line : 16
************************** ^^ here should be 9
> DW_AT_low_pc : 0x4004e0
>
> I'm using gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-50)
symbol_found() uses just SYMBOL_LINE.
The question is if we say this GCC is broken (and XFAIL it or move it to
gdb.dwarf2/) or whether GDB should use SYMBOL_VALUE_ADDRESS.
I am for the latter, DWARF talks for DW_TAG_label about DW_AT_low_pc and not
about DW_AT_decl_line.
Thanks,
Jan