gdb command "next" wrongly working as command "step"

Jan Kratochvil jan.kratochvil@redhat.com
Sun Aug 18 04:16:00 GMT 2019


On Sun, 18 Aug 2019 05:36:34 +0200, William Tambe wrote:
> I having an issue where the gdb command "next" wrongly work as the
> command "step", in that it will step-into functions instead of
> stepping-over functions.
> 
> To support single stepping I have implemnted set_gdbarch_software_single_step().
> 
> Is there another function that I need to implement to support
> stepping-over functions ?

"next" needs properly implemented backtrace/unwinding so that can it can do
"finish" when "next" detects it stepped into a function.


Jan



More information about the Gdb mailing list