This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug c++/13427] New: Incorrect address of std::string argument inconstructor when passing by value
- From: "davewong at syberdave dot net" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Tue, 22 Nov 2011 03:51:46 +0000
- Subject: [Bug c++/13427] New: Incorrect address of std::string argument inconstructor when passing by value
- Auto-submitted: auto-generated
http://sourceware.org/bugzilla/show_bug.cgi?id=13427
Bug #: 13427
Summary: Incorrect address of std::string argument in
constructor when passing by value
Product: gdb
Version: 7.3
Status: NEW
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned@sourceware.org
ReportedBy: davewong@syberdave.net
Classification: Unclassified
Created attachment 6070
--> http://sourceware.org/bugzilla/attachment.cgi?id=6070
Test case
When setting a breakpoint at a constructor, I cannot "print" an argument
because gdb doesn't get its address correct. See attached.
It may be useful to note that it works properly at a class method (as opposed
to the constructor).
gcc (Debian 4.5.3-1) 4.5.3
GNU gdb (GDB) 7.3-debian
--
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.