This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: GDB is stepping past main()
On Wed, Jul 13, 2005 at 05:17:01PM +0400, Konstantin Karganov wrote:
>
> > Because the user (in your example) has asked it to step out of main.
> I asked to step and started waiting for the program termination message.
> And get that stopped somewhere "don't know where"...
>
> > If you want to handle this in a debugger, try detecting when you're in
> > main, step, are no longer in main, and main is no longer in the
> > backtrace.
> Don't you think all this detecting is a debugger's task???
As a user, I would prefer the debugger not silently run my program to
completion during a "step" command, when issued from a location with
source level debugging information. You're the first person I can ever
recall complaining about this behavior.
--
Daniel Jacobowitz
CodeSourcery, LLC