question, re: gdb.base/label.exp

Tom Tromey tromey@redhat.com
Thu Feb 24 14:40:00 GMT 2011


>>>>> "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.

Tom



More information about the Gdb mailing list