From: Alex Bennee <kernel-hacker@bennee.com>
To: gdb@sources.redhat.com
Subject: Getting to the source for a given C++ object
Date: Wed, 10 Aug 2005 17:17:00 -0000 [thread overview]
Message-ID: <1123694226.6601.12.camel@okra.transitives.com> (raw)
Hi,
I'm currently trying to debug a C++ program that makes heavy use of
templates and derived classes. Is there an easy way to get to the actual
code for a given class pointer?
At the moment if I look at the class pointer it gives me the template
instantiation which I can work it out from but as most of the parameters
are #define's is a rather labour intensive operation.
e.g.
(gdb) p currNode
$8 = (Operation<(ExpressionType)45, 0, 1, RegisterID, (ResultType)2> *)
0x3834a3d0
--
Alex, homepage: http://www.bennee.com/~alex/
Spirtle, n.: The fine stream from a grapefruit that always lands right
in your eye. -- Sniglets, "Rich Hall & Friends"
next reply other threads:[~2005-08-10 17:17 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-10 17:17 Alex Bennee [this message]
2005-08-10 20:35 ` Jason Molenda
2005-08-11 9:27 ` Alex Bennee
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=1123694226.6601.12.camel@okra.transitives.com \
--to=kernel-hacker@bennee.com \
--cc=gdb@sources.redhat.com \
/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).