From: "yinglcs2@yahoo.com" <yinglcs2@yahoo.com>
To: gdb@sourceware.org
Subject: Debugging a C++ problem in GDB on linux
Date: Sat, 21 Jan 2006 21:46:00 -0000 [thread overview]
Message-ID: <20060121203559.41933.qmail@web35715.mail.mud.yahoo.com> (raw)
Hi
I am trying to debug a C++ program in GDB on linux.
I want to dump out the content of the "this" object,
Here is what I get:
(gdb) print *this
$2 = {path = <incomplete type>}
My question is why I don't see the content of 'path'?
It said
'<incomplete type>'.
In the code, path is:
ostringstream path;
When I try to do this: at GDB prompt 'print
this->path.str()' , I get
this error:
(gdb) print this->path.str()
Couldn't find method ostringstream::str
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
next reply other threads:[~2006-01-21 20:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-21 21:46 yinglcs2 [this message]
2006-01-22 19:18 ` Daniel Jacobowitz
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=20060121203559.41933.qmail@web35715.mail.mud.yahoo.com \
--to=yinglcs2@yahoo.com \
--cc=gdb@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