This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: printing enumerated values
- To: shaunj at gray-interfaces dot com
- Subject: Re: printing enumerated values
- From: jtc at redback dot com (J.T. Conklin)
- Date: 06 Oct 2000 11:04:28 -0700
- Cc: gdb at sources dot redhat dot com
- References: <00100611524000.07740@ed>
- Reply-To: jtc at redback dot com
>>>>> "Shaun" == Shaun Jackman <shaunj@gray-interfaces.com> writes:
Shaun> In GDB I get this...
Shaun> (gdb) p A
Shaun> $1 = 0
Shaun> (gdb) p B
Shaun> $2 = 1
Shaun> (gdb)
You need to let us know more about your environment. From current
sources, on a NetBSD/i386 1.3 machine (ie i386 aout stabs) I get:
(gdb) p A
$1 = A
(gdb) p B
$2 = B
(gdb) p (int) A
$3 = 512
(gdb) p (int) B
$4 = 513
--jtc
--
J.T. Conklin
RedBack Networks