This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug exp/8256] enum types are casted to (byte)
- From: "tromey at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: 19 Dec 2008 21:57:13 -0000
- Subject: [Bug exp/8256] enum types are casted to (byte)
- References: <20030325102801.8256.mateuszx.pusz@intel.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From tromey at redhat dot com 2008-12-19 21:57 -------
This seems to work with gdb 6.8:
(gdb) ptype my_enum_t
type = enum my_enum_e {FIRST_VALUE = 126, SECOND_VALUE, THIRD_VALUE}
and:
(gdb) p (int)THIRD_VALUE
$4 = 128
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |tromey at redhat dot com
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |6.8
http://sourceware.org/bugzilla/show_bug.cgi?id=8256
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.