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: print/x on references


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


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