diff options
author | Jose E. Marchesi <jose.marchesi@oracle.com> | 2014-02-10 07:09:23 -0800 |
---|---|---|
committer | Jose E. Marchesi <jose.marchesi@oracle.com> | 2014-02-10 07:11:03 -0800 |
commit | 961842b289ba80b64f95f2e1a3df1f866acb229b (patch) | |
tree | 96d7d7f9217d8da3cd6d73fec6bd6ac641f41a24 /gdb/sparc-tdep.h | |
parent | 3f03e7b140f984868442092abe909ebb7f251f1d (diff) | |
download | gdb-961842b289ba80b64f95f2e1a3df1f866acb229b.zip gdb-961842b289ba80b64f95f2e1a3df1f866acb229b.tar.gz gdb-961842b289ba80b64f95f2e1a3df1f866acb229b.tar.bz2 |
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.
Diffstat (limited to 'gdb/sparc-tdep.h')
-rw-r--r-- | gdb/sparc-tdep.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/sparc-tdep.h b/gdb/sparc-tdep.h index b83d711..a065ebe 100644 --- a/gdb/sparc-tdep.h +++ b/gdb/sparc-tdep.h @@ -193,6 +193,9 @@ extern struct sparc_frame_cache * extern struct sparc_frame_cache * sparc32_frame_cache (struct frame_info *this_frame, void **this_cache); +extern int + sparc_in_function_epilogue_p (struct gdbarch *gdbarch, CORE_ADDR pc); + extern int sparc_software_single_step (struct frame_info *frame); |