This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RFA: Correctly set call dummy breakpoints



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);


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]