aboutsummaryrefslogtreecommitdiff
path: root/gdb/config/i386/tm-nbsd.h
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/config/i386/tm-nbsd.h')
-rw-r--r--gdb/config/i386/tm-nbsd.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/gdb/config/i386/tm-nbsd.h b/gdb/config/i386/tm-nbsd.h
index 885c809..dbe1f79 100644
--- a/gdb/config/i386/tm-nbsd.h
+++ b/gdb/config/i386/tm-nbsd.h
@@ -23,7 +23,7 @@
#define HAVE_I387_REGS
-#include "i386/tm-i386bsd.h"
+#include "i386/tm-i386.h"
#include "tm-nbsd.h"
extern use_struct_convention_fn i386nbsd_use_struct_convention;
@@ -43,4 +43,16 @@ extern int get_longjmp_target (CORE_ADDR *);
#define GET_LONGJMP_TARGET(ADDR) get_longjmp_target(ADDR)
+
+/* Support for signal handlers. */
+
+/* The sigtramp is above the user stack and immediately below the
+ user area. Using constants here allows for cross debugging. */
+
+#define SIGTRAMP_START(pc) 0xbfbfdf20
+#define SIGTRAMP_END(pc) 0xbfbfdff0
+
+/* Offset to saved PC in sigcontext, from <sys/signal.h>. */
+#define SIGCONTEXT_PC_OFFSET 20
+
#endif /* TM_NBSD_H */