This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]