question, re: gdb.base/label.exp
Michael Snyder
msnyder@vmware.com
Thu Feb 24 18:21:00 GMT 2011
Tom Tromey wrote:
>>>>>> "Michael" == Michael Snyder <msnyder@vmware.com> writes:
>
> Michael> Tom, does this test have a dependency on the compiler version?
> Michael> It's failing on my RHEL5 system with cvs/head gdb.
>
> It might, but I am not certain. I looked through the gdb-patches
> archives but my original mail didn't say anything; nor did the PR.
>
> You can check pretty easily with `readelf -wi' on the `labels'
> executable that is made by the test suite. Search the output for the
> `there' DIE. I get:
>
> <2><b7>: Abbrev Number: 8 (DW_TAG_label)
> <b8> DW_AT_name : (indirect string, offset: 0xc4): there
> <bc> DW_AT_decl_file : 1
> <bd> DW_AT_decl_line : 13
> <be> DW_AT_low_pc : 0x804840c
>
> I think the important parts are that (1) it exists and (2) it has a
> DW_AT_low_pc.
I see this:
<2><15d>: Abbrev Number: 8 (DW_TAG_label)
DW_AT_name : there
DW_AT_decl_file : 1
DW_AT_decl_line : 13
DW_AT_low_pc : 0x4004f1
<2><16e>: Abbrev Number: 8 (DW_TAG_label)
DW_AT_name : here
DW_AT_decl_file : 1
DW_AT_decl_line : 16
DW_AT_low_pc : 0x4004e0
I'm using gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-50)
More information about the Gdb
mailing list