public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/10694] Passing "const std::string" by value to a function shows corrupted object
       [not found] <bug-10694-4717@http.sourceware.org/bugzilla/>
@ 2011-01-15 16:25 ` techsgin at gmail dot com
  2011-11-10 21:44 ` tromey at redhat dot com
  2011-11-23  9:48 ` Matthias.Gerstner at esolutions dot de
  2 siblings, 0 replies; 3+ messages in thread
From: techsgin at gmail dot com @ 2011-01-15 16:25 UTC (permalink / raw)
  To: gdb-prs

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

techsgin at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |techsgin at gmail dot com

--- Comment #1 from techsgin at gmail dot com 2011-01-15 16:25:14 UTC ---
Same behavior in GDB 7.2.

-- 
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.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug c++/10694] Passing "const std::string" by value to a function shows corrupted object
       [not found] <bug-10694-4717@http.sourceware.org/bugzilla/>
  2011-01-15 16:25 ` [Bug c++/10694] Passing "const std::string" by value to a function shows corrupted object techsgin at gmail dot com
@ 2011-11-10 21:44 ` tromey at redhat dot com
  2011-11-23  9:48 ` Matthias.Gerstner at esolutions dot de
  2 siblings, 0 replies; 3+ messages in thread
From: tromey at redhat dot com @ 2011-11-10 21:44 UTC (permalink / raw)
  To: gdb-prs

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

Tom Tromey <tromey at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2011-11-10
                 CC|                            |tromey at redhat dot com
     Ever Confirmed|0                           |1

--- Comment #2 from Tom Tromey <tromey at redhat dot com> 2011-11-10 21:44:20 UTC ---
I suspect this was fixed.  It works for me on Fedora 15:

(gdb) s
func (s="hello") at pr.cc:7
7        std::cout << s << "\n";


(The system pretty-printer is applied, which is why it shows
a plain string form)

I am not sure whether this was a gdb bug or a gcc bug.
Could you try a newer version of one and/or both?

-- 
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.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug c++/10694] Passing "const std::string" by value to a function shows corrupted object
       [not found] <bug-10694-4717@http.sourceware.org/bugzilla/>
  2011-01-15 16:25 ` [Bug c++/10694] Passing "const std::string" by value to a function shows corrupted object techsgin at gmail dot com
  2011-11-10 21:44 ` tromey at redhat dot com
@ 2011-11-23  9:48 ` Matthias.Gerstner at esolutions dot de
  2 siblings, 0 replies; 3+ messages in thread
From: Matthias.Gerstner at esolutions dot de @ 2011-11-23  9:48 UTC (permalink / raw)
  To: gdb-prs

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

Matthias Gerstner <Matthias.Gerstner at esolutions dot de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|                            |FIXED

--- Comment #3 from Matthias Gerstner <Matthias.Gerstner at esolutions dot de> 2011-11-23 09:47:52 UTC ---
Using the same test program with

gcc --version
gcc (Gentoo 4.5.3-r1 p1.0, pie-0.4.5) 4.5.3


gdb --version
GNU gdb (Gentoo 7.2 p1) 7.2
[...]
This GDB was configured as "i686-pc-linux-gnu".

the problem is gone for me, too.

-- 
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.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-11-23  9:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-10694-4717@http.sourceware.org/bugzilla/>
2011-01-15 16:25 ` [Bug c++/10694] Passing "const std::string" by value to a function shows corrupted object techsgin at gmail dot com
2011-11-10 21:44 ` tromey at redhat dot com
2011-11-23  9:48 ` Matthias.Gerstner at esolutions dot de

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).