aboutsummaryrefslogtreecommitdiff
path: root/gdb/config/m68k
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@linux-m68k.org>2002-02-26 22:12:49 +0000
committerAndreas Schwab <schwab@linux-m68k.org>2002-02-26 22:12:49 +0000
commit75738c297badd8ef64075f9aebcb5aaef9e03c24 (patch)
tree6afc535520a2fac86aae5c0937ddeca8fc577f4e /gdb/config/m68k
parent263de0103e5f0e2a0f287e72c5f453ca2800b64c (diff)
downloadgdb-75738c297badd8ef64075f9aebcb5aaef9e03c24.zip
gdb-75738c297badd8ef64075f9aebcb5aaef9e03c24.tar.gz
gdb-75738c297badd8ef64075f9aebcb5aaef9e03c24.tar.bz2
* config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
m68k_linux_frame_saved_pc. (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of in_sigtramp. (SIGCONTEXT_PC_OFFSET): Remove. * m68klinux-nat.c (m68k_linux_frame_saved_pc, m68k_linux_sigtramp_saved_pc): New functions. (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define. (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h. (UCONTEXT_PC_OFFSET): Define. (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both non-RT and RT signal trampolines.
Diffstat (limited to 'gdb/config/m68k')
-rw-r--r--gdb/config/m68k/tm-linux.h15
1 files changed, 4 insertions, 11 deletions
diff --git a/gdb/config/m68k/tm-linux.h b/gdb/config/m68k/tm-linux.h
index 78e732c..94b2c2c 100644
--- a/gdb/config/m68k/tm-linux.h
+++ b/gdb/config/m68k/tm-linux.h
@@ -99,16 +99,9 @@
#define GET_LONGJMP_TARGET(ADDR) m68k_get_longjmp_target(ADDR)
-/* Offset to saved PC in sigcontext, from <asm/sigcontext.h>. */
-#define SIGCONTEXT_PC_OFFSET 26
-
#undef FRAME_SAVED_PC
-#define FRAME_SAVED_PC(FRAME) \
- (((FRAME)->signal_handler_caller \
- ? sigtramp_saved_pc (FRAME) \
- : read_memory_integer ((FRAME)->frame + 4, 4)))
-
-extern CORE_ADDR sigtramp_saved_pc (struct frame_info *);
+#define FRAME_SAVED_PC(frame) m68k_linux_frame_saved_pc (frame)
+extern CORE_ADDR m68k_linux_frame_saved_pc (struct frame_info *);
-#define IN_SIGTRAMP(pc,name) in_sigtramp (pc)
-extern int in_sigtramp (CORE_ADDR pc);
+#define IN_SIGTRAMP(pc,name) m68k_linux_in_sigtramp (pc)
+extern int m68k_linux_in_sigtramp (CORE_ADDR pc);