This is the mail archive of the gdb@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]

Re: Python Pretty printing a struct


>>>>> "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


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