This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: How to step into multi-command statements
- From: Bob Rossi <bob at brasko dot net>
- To: Tron Thomas <tron dot thomas at verizon dot net>
- Cc: gdb at sources dot redhat dot com
- Date: Sat, 21 Aug 2004 13:41:21 -0400
- Subject: Re: How to step into multi-command statements
- References: <C96D0103-F397-11D8-8792-000D93C13B70@verizon.net>
On Sat, Aug 21, 2004 at 10:30:25AM -0700, Tron Thomas wrote:
> 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.
You need to 'step', 'finish', 'step', 'finish', until you get to the
function that you want.
Bob Rossi