From: Andrew Cagney <cagney@gnu.org>
To: Tron Thomas <tron.thomas@verizon.net>
Cc: gdb@sources.redhat.com
Subject: Re: How to step into multi-command statements
Date: Mon, 23 Aug 2004 17:05:00 -0000 [thread overview]
Message-ID: <412A2385.3060908@gnu.org> (raw)
In-Reply-To: <C96D0103-F397-11D8-8792-000D93C13B70@verizon.net>
> If I were debugging a program and ran across code like the following:
>
> string text;
> ...
> formatter.DisplayText(text.c_str());
>
> What commands do I use to step into the DisplayText method of the formatter object? Stepping into the statement takes me into the code for the c_str method of the string class, which I don't care about. After getting into this code I'm finding it impossible to get into the actual code I want. Instead I end up being going to the next statement that follows the call to DisplayText.
Try:
(gdb) advance formatter.DisplayText
Andrew
prev parent reply other threads:[~2004-08-23 17:05 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-21 17:30 Tron Thomas
2004-08-21 17:41 ` Bob Rossi
2004-08-22 10:53 ` Joel Brobecker
2004-08-23 17:05 ` Andrew Cagney [this message]
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=412A2385.3060908@gnu.org \
--to=cagney@gnu.org \
--cc=gdb@sources.redhat.com \
--cc=tron.thomas@verizon.net \
/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