print/x on references

Daniel Jacobowitz drow@false.org
Thu Oct 18 16:30:00 GMT 2007


On Thu, Oct 18, 2007 at 09:04:48AM -0700, Douglas Evans wrote:
> (gdb) p/x x -> prints same as $4 but in hex
> (gdb) p &x -> prints pointer (e.g. "$5 = (Glorp *) 0x8049850")
> 
> $0.02

And then there's no way to find the address of the reference?

-- 
Daniel Jacobowitz
CodeSourcery



More information about the Gdb mailing list