This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Python Pretty printing a struct
- From: Tom Tromey <tromey at redhat dot com>
- To: Chris Johns <chris at contemporary dot net dot au>
- Cc: gdb at sourceware dot org
- Date: Fri, 12 Mar 2010 13:40:03 -0700
- Subject: Re: Python Pretty printing a struct
- References: <4B997F28.4050602@contemporary.net.au>
- Reply-to: tromey at redhat dot com
>>>>> "Chris" == Chris Johns <chris@contemporary.net.au> writes:
Chris> (gdb) p the_semaphore->Object.id
Chris> $36 = to_string = {
Chris> id = 436273170,
[...]
Chris> How do I remove the extra "to_string =" ?
Presumably your printer returns it.
Could you post the python code?
Chris> I have also noticed this:
Chris> (gdb) p /x the_semaphore->Object.id
Chris> $37 = 0x1a010012
Chris> Is it expected the actual value is shown in hex rather than the
Chris> numeric fields returned by the pretty print iterator ?
It might be a bug, I am not sure.
Tom