public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/11233] GDB fails to print value for ostringstream object
       [not found] <bug-11233-4717@http.sourceware.org/bugzilla/>
@ 2015-03-24 20:00 ` phil at kantaka dot co.uk
  0 siblings, 0 replies; only message in thread
From: phil at kantaka dot co.uk @ 2015-03-24 20:00 UTC (permalink / raw)
  To: gdb-prs

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.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-03-24 17:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-11233-4717@http.sourceware.org/bugzilla/>
2015-03-24 20:00 ` [Bug c++/11233] GDB fails to print value for ostringstream object phil at kantaka dot co.uk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).