This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: GDB is stepping past main()
- From: Konstantin Karganov <kostik at ispras dot ru>
- To: Daniel Jacobowitz <drow at false dot org>
- Cc: gdb at sources dot redhat dot com
- Date: Wed, 13 Jul 2005 17:42:37 +0400 (MSD)
- Subject: Re: GDB is stepping past main()
> 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.
As the default stepping mode is "step-mode off" (do not enter the
functions w/o debug info) I suppose that the current position is always in
user source code and the FE debugger can display it.
But when stepping at the end of main() this assumption fails - no matter
what is the current step-mode, the debugger gets to the place where it
can't report the current position.
I suppose that the step-mode should affect this behavior also.
Best regards,
Konstantin.