This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
RFA: Correctly set call dummy breakpoints
- To: gdb-patches at sources dot redhat dot com
- Subject: RFA: Correctly set call dummy breakpoints
- From: Jim Blandy <jimb at zwingli dot cygnus dot com>
- Date: Fri, 4 May 2001 20:46:34 -0500 (EST)
Without this change, GDB doesn't set a breakpoint at the synthetic
call's return address. ("D'oh!")
2001-05-04 Jim Blandy <jimb@redhat.com>
* mn10300-tdep.c (mn10300_gdbarch_init): We do have a
dummy_breakpoint_offset; it's zero.
*** gdb/mn10300-tdep.c.base Fri May 4 14:55:10 2001
--- gdb/mn10300-tdep.c Fri May 4 16:27:44 2001
***************
*** 1072,1078 ****
/* Calling functions in the inferior from GDB. */
set_gdbarch_call_dummy_p (gdbarch, 1);
! set_gdbarch_call_dummy_breakpoint_offset_p (gdbarch, 0);
set_gdbarch_call_dummy_stack_adjust_p (gdbarch, 0);
set_gdbarch_call_dummy_location (gdbarch, AT_ENTRY_POINT);
set_gdbarch_call_dummy_address (gdbarch, entry_point_address);
--- 1072,1079 ----
/* Calling functions in the inferior from GDB. */
set_gdbarch_call_dummy_p (gdbarch, 1);
! set_gdbarch_call_dummy_breakpoint_offset_p (gdbarch, 1);
! set_gdbarch_call_dummy_breakpoint_offset (gdbarch, 0);
set_gdbarch_call_dummy_stack_adjust_p (gdbarch, 0);
set_gdbarch_call_dummy_location (gdbarch, AT_ENTRY_POINT);
set_gdbarch_call_dummy_address (gdbarch, entry_point_address);