Add gdbarch_in_function_epilogue_p hook for sparc64.
watchpoint_update and watchpoint_cond avoid checking for watchpoints when we are located at a function epilogue in the current frame. This is done in order to avoid using corrupted local registers and unwinding a corrupted/destroyed stack. The code determining whether we are in a function epilogue is provided by the backends via the gdbarch_in_function_epilogue_p hook. This commit adds such a hook for sparc64 targets. 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com> * sparc-tdep.c (sparc_in_function_epilogue_p): New function. (X_RETTURN): New macro. * sparc-tdep.h: sparc_in_function_epilogue_p prototype. * sparc64-tdep.c (sparc64_init_abi): Hook sparc_in_function_epilogue_p.
This commit is contained in:
parent
3f03e7b140
commit
961842b289
4 changed files with 39 additions and 0 deletions
|
@ -1196,6 +1196,7 @@ sparc64_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
|
|||
(gdbarch, default_stabs_argument_has_addr);
|
||||
|
||||
set_gdbarch_skip_prologue (gdbarch, sparc64_skip_prologue);
|
||||
set_gdbarch_in_function_epilogue_p (gdbarch, sparc_in_function_epilogue_p);
|
||||
|
||||
/* Hook in the DWARF CFI frame unwinder. */
|
||||
dwarf2_frame_set_init_reg (gdbarch, sparc64_dwarf2_frame_init_reg);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue