[RFA] OSF/1 - "next" over prologueless function call
Andrew Cagney
cagney@gnu.org
Wed Dec 3 04:19:00 GMT 2003
> So the following test fails in infrun.c:handle_inferior_event() fails,
> and GDB incorrectly thinks that we have landed at the next line of code:
>
> if (((stop_pc == ecs->stop_func_start /* Quick test */
> || in_prologue (stop_pc, ecs->stop_func_start))
> && !IN_SOLIB_RETURN_TRAMPOLINE (stop_pc, ecs->stop_func_name))
> || IN_SOLIB_CALL_TRAMPOLINE (stop_pc, ecs->stop_func_name)
> || ecs->stop_func_name == 0)
>
See my recent comments further down in that file. I think GDB should be
using:
frame_id_unwind(current_frame) == frame_id_from_before_stepi
to determine if it did a step into a function. What happens if that is
used?
Andrew
More information about the Gdb-patches
mailing list