From: Ian Lance Taylor <iant@google.com>
To: Jonas Paulsson <jnspaulsson@hotmail.com>
Cc: <gcc-help@gcc.gnu.org>
Subject: Re: FW: debug info, template class member method
Date: Sat, 28 May 2011 15:52:00 -0000 [thread overview]
Message-ID: <mcrboyo2o9p.fsf@coign.corp.google.com> (raw)
In-Reply-To: <SNT106-W38F940D970D8562F8FD3AEB1760@phx.gbl> (Jonas Paulsson's message of "Fri, 27 May 2011 10:13:21 +0200")
Jonas Paulsson <jnspaulsson@hotmail.com> writes:
> I am trying to debug a template class, but I get a long method name and "...which has no line number information.". The member function is defined in the .h file, inside the class definition.
>
> I wonder if it is possible to step through a template member function with gdb? I have tried g++ -O0 -ggdb -fno-default-inline, but no luck.
Which version of gcc and which version of gdb?
Stepping through inline template member functions seem to move between
working and non-working with changes to the tools. Unfortunately I
don't know of any way to get it to work when it is not working.
If you are using a current version of gcc, please file a bug report with
a test case and including info about the gdb you are using. Thanks.
Ian
next prev parent reply other threads:[~2011-05-27 14:48 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <SNT106-W339D5AB5FDCA9D2228820BB1770@phx.gbl>
2011-05-28 6:50 ` Jonas Paulsson
2011-05-28 15:52 ` Ian Lance Taylor [this message]
2011-05-30 9:20 ` Jonas Paulsson
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=mcrboyo2o9p.fsf@coign.corp.google.com \
--to=iant@google.com \
--cc=gcc-help@gcc.gnu.org \
--cc=jnspaulsson@hotmail.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).