public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: "davewong at syberdave dot net" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug c++/13427] New: Incorrect address of std::string argument in constructor when passing by value
Date: Tue, 22 Nov 2011 03:52:00 -0000 [thread overview]
Message-ID: <bug-13427-4717@http.sourceware.org/bugzilla/> (raw)
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.
next reply other threads:[~2011-11-22 3:52 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-22 3:52 davewong at syberdave dot net [this message]
2011-11-24 7:28 ` [Bug c++/13427] " davewong at syberdave dot net
2015-03-24 17:42 ` phil at kantaka dot co.uk
2015-03-25 15:03 ` phil at kantaka dot co.uk
2020-04-05 12:28 ` ssbssa at sourceware dot org
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bug-13427-4717@http.sourceware.org/bugzilla/ \
--to=sourceware-bugzilla@sourceware.org \
--cc=gdb-prs@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).