Re: gdb command "next" wrongly working as command "step"
William Tambe <[email protected]>
| Newsgroups | gmane.comp.gdb.devel |
|---|---|
| Message-ID | <CAF8i9mNoawng3nbCebbY5ihSi5bwOzVg5YyH6NbaGrxcfTNYEQ@mail.gmail.com> |
On Sat, Aug 17, 2019 at 11:16 PM Jan Kratochvil <[email protected]> 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