[1/4] RFC: skip DIEs which only declare an enum

Tom Tromey tromey@redhat.com
Mon Jul 18 18:02:00 GMT 2011


>>>>> "Daniel" == Daniel Jacobowitz <drow@false.org> writes:

Daniel> Generally speaking, I agree with your sentiment.  Can't you
Daniel> forward-declare enums in the latest C++ draft, though?

Yes, thanks for pointing that out.  The F15 g++ accepts this translation
unit with -std=c++0x:

    enum x : int;
    enum x a;

This generates:

 <1><1d>: Abbrev Number: 2 (DW_TAG_enumeration_type)
    <1e>   DW_AT_name        : x        
    <20>   DW_AT_declaration : 1        
    <21>   DW_AT_byte_size   : 4        
    <22>   DW_AT_decl_file   : 1        
    <23>   DW_AT_decl_line   : 1        


I am going withdraw this patch and look at other ways to fix this
problem.

Tom



More information about the Gdb-patches mailing list