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

William Tambe tambewilliam@gmail.com
Sun Aug 18 08:32:00 GMT 2019


On Sat, Aug 17, 2019 at 11:16 PM Jan Kratochvil
<jan.kratochvil@redhat.com> wrote:
>
> 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.

Can I have suggestions of locations within the gdb code where I could
put breakpoints to trace where the issue I am having is occurring ?

Alternatively, what function within the gdb code implement "next" and "finish" ?

>
>
> Jan



More information about the Gdb mailing list