print/x on references

Daniel Jacobowitz drow@false.org
Fri Oct 19 22:00:00 GMT 2007


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



More information about the Gdb mailing list