This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Getting pissed off by gdb. Please help with stepping in.
> Date: Fri, 19 Mar 2010 11:39:20 +0100 (CET)
> From: Mark Kettenis <mark.kettenis@xs4all.nl>
> CC: eliz@gnu.org, pedro@codesourcery.com, gdb@sourceware.org, dje@google.com,
> temp@sourceboost.com
>
> Sorry, but I must be missing something. Howe can you end up doing too
> many "step"s in the foo(bar()) scenario? I mean, if you do one step
> too many, finding yourself stepping into foo() wheras you really
> wanted to step over foo(), you can simply use "finish".
In this simple example, maybe. But in more complex situations (e.g.,
when arguments to `foo' include more function calls), not necessarily.