[Bug debug/11279] New: DWARF-2 output mishandles large enums
drow at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sat Jun 21 20:53:00 GMT 2003
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.
More information about the Gcc-bugs
mailing list