src/gdb ChangeLog ada-exp.y testsuite/ChangeLo ...
<brobecke <at> sourceware.org>
2011-07-01 18:25:17 GMT
CVSROOT: /cvs/src
Module name: src
Changes by: brobecke <at> sourceware.org 2011-07-01 18:25:17
Modified files:
gdb : ChangeLog ada-exp.y
gdb/testsuite : ChangeLog
Added files:
gdb/testsuite/gdb.ada: char_enum.exp
gdb/testsuite/gdb.ada/char_enum: foo.adb pck.adb pck.ads
Log message:
handle character-based enumeration typedefs
Consider the following type:
type Char_Enum_Type is ('A', 'B', 'C', 'D');
If the compiler generates a Char_Enum_Type typedef in the debugging
information, the debugger fails in the following case:
(gdb) p Char_Enum_Type'('B')
$1 = 66
For our type, the underlying value of 'B' is actually 1, not 66
(ASCII 'B'). We are failing this case because we were not handling
typedef to enum types before. This patch fixes this.
gdb/ChangeLog:
(Continue reading)