This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug c++/11233] GDB fails to print value for ostringstream object
- From: "phil at kantaka dot co.uk" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Tue, 24 Mar 2015 17:42:30 +0000
- Subject: [Bug c++/11233] GDB fails to print value for ostringstream object
- Auto-submitted: auto-generated
- References: <bug-11233-4717 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=11233
Phil Armstrong <phil at kantaka dot co.uk> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
CC| |phil at kantaka dot co.uk
Resolution|--- |FIXED
--- Comment #1 from Phil Armstrong <phil at kantaka dot co.uk> ---
Fixed by 7.9 by the looks of things:
phil@bill:~/Code$ g++ -ggdb gdbtest.cc -o gdbtest
phil@bill:~/Code$ gdb gdbtest
GNU gdb (Debian 7.9-1) 7.9
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from gdbtest...done.
(gdb) br main
Breakpoint 1 at 0x400cbf: file gdbtest.cc, line 9.
(gdb) run
Starting program: /home/phil/Code/gdbtest
Breakpoint 1, main (argc=1, argv=0x7fffffffe2a8) at gdbtest.cc:9
9 ostringstream os;
(gdb) n
11 os << "time be time";
(gdb) n
12 cout << os.str() << endl;
(gdb) p os.str().size()
$1 = 12
(gdb) p os.str()
$2 = "time be time"
(gdb)
--
You are receiving this mail because:
You are on the CC list for the bug.