This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB 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 gdb/11067] p <enum constant> should print the constant's value


http://sourceware.org/bugzilla/show_bug.cgi?id=11067

--- Comment #6 from Andreas Schwab <schwab@linux-m68k.org> ---
Or use the fact that the expression defaults to $.

(gdb) p Val1
$1 = Val1
(gdb) p/d
$2 = 0

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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