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: Pretty Printing


Hi,

On 01.02.2013 10:22, Graham Labdon wrote:
> Code:
>     exp = "((class QFile *)%s)->%s()" % (value.address, "exists")
>
try

exp = "((class QFile *)%i)->%s()" % (long(value.address), "exists")

or

exp = "((class QFile *)0x%x)->%s()" % (long(value.address), "exists")

To print the address and not trigger the pretty printer

- Joachim

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature


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