3

I am looking into a core from 64 bit system. Architecture is set correctly but still pointer value is printed as 4 bytes. What changes are needed to make it print 64 bit value ?

(gdb) p sizeof(void *) $16 = 8 (gdb) p this $15 = 0x4852200 (gdb) show architecture The target architecture is assumed to be i386:x86-64:intel 
1
  • Already answered, but if you want to see the whole thing, try p/z this. Commented Dec 18, 2013 at 23:54

1 Answer 1

4

What changes are needed to make it print 64 bit value

GDB is already printing 64-bit value. It just so happens that the upper bits are 0.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.