This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug c++/9483] print displays incorrect value when using a format ona variable passed by reference
- From: "tromey at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Mon, 11 Oct 2010 22:08:42 +0000
- Subject: [Bug c++/9483] print displays incorrect value when using a format ona variable passed by reference
- Auto-submitted: auto-generated
- References: <bug-9483-4717@http.sourceware.org/bugzilla/>
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.