This is the mail archive of the gdb-prs@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]

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


http://sourceware.org/bugzilla/show_bug.cgi?id=9483

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.


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