[Bug c++/9483] print displays incorrect value when using a format on a variable passed by reference

tromey at redhat dot com sourceware-bugzilla@sourceware.org
Mon Oct 11 22:08:00 GMT 2010


Tom Tromey <tromey at redhat dot com> changed:

           What    |Removed                     |Added
             Status|ASSIGNED                    |RESOLVED
                 CC|                            |tromey at redhat dot com
         Resolution|                            |FIXED
   Target Milestone|---                         |7.2

--- Comment #1 from Tom Tromey <tromey at redhat dot com> 2010-10-11 22:08:25 UTC ---
This was fixed at some point.
Now it does what I would expect:

(gdb) p temp
$1 = (unsigned int &) @0xbffff6e4: 0
(gdb) p/x temp
$2 = (unsigned int &) @0xbffff6e4: 0x0
(gdb) p /t temp
$3 = (unsigned int &) @0xbffff6e4: 0

Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the Gdb-prs mailing list