aboutsummaryrefslogtreecommitdiff
path: root/gdb/nm-mips.h
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/nm-mips.h')
-rw-r--r--gdb/nm-mips.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/nm-mips.h b/gdb/nm-mips.h
index 4a264fe..cba5d8d 100644
--- a/gdb/nm-mips.h
+++ b/gdb/nm-mips.h
@@ -21,3 +21,11 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
/* Override copies of {fetch,store}_inferior_registers in infptrace.c. */
#define FETCH_INFERIOR_REGISTERS
+
+/* Figure out where the longjmp will land. We expect that we have just entered
+ longjmp and haven't yet setup the stack frame, so the args are still in the
+ argument regs. a0 (CALL_ARG0) points at the jmp_buf structure from which we
+ extract the pc (JB_PC) that we will land at. The pc is copied into ADDR.
+ This routine returns true on success */
+
+#define GET_LONGJMP_TARGET(ADDR) get_longjmp_target(ADDR)