This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug debug/11279] New: DWARF-2 output mishandles large enums


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11279

           Summary: DWARF-2 output mishandles large enums
           Product: gcc
           Version: 3.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: debug
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: drow at gcc dot gnu dot org
                CC: gcc-bugs@gcc.gnu.org
 GCC build triplet: i386-pc-linux-gnu
  GCC host triplet: i386-pc-linux-gnu
GCC target triplet: i386-pc-linux-gnu

Given this line:
enum e {I, J=(unsigned)0xffffffff} e = J;

Compiled with -gdwarf-2, we get:
 <2><2f>: Abbrev Number: 3 (DW_TAG_enumerator)
     DW_AT_name        : I
     DW_AT_const_value : 0
 <2><33>: Abbrev Number: 4 (DW_TAG_enumerator)
     DW_AT_name        : J

There is no DW_AT_const_value for J, so GDB can not figure out
the value of J.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]