This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: print/x on references
On Fri, Oct 19, 2007 at 02:40:32PM -0700, Jim Blandy wrote:
> For debugging C++, GDB implements a use of `&' beyond what is
> allowed in the C++ language itself: you can use `&(&REF)' (or, if
> you prefer, simply `&&REF') to examine the address where a C++
> reference variable (declared with `&REF') is stored.
Good for us. Shame on us for having no test cases for it! I wonder
if &&REF really works.
--
Daniel Jacobowitz
CodeSourcery