From 12209a1731820d56eb3772fe5a5c68b982783b2c Mon Sep 17 00:00:00 2001 From: gwr Date: Fri, 26 Sep 1997 05:14:07 +0000 Subject: [PATCH] merge sigtramp fixes --- gnu/dist/gdb/config/i386/tm-nbsd.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/gnu/dist/gdb/config/i386/tm-nbsd.h b/gnu/dist/gdb/config/i386/tm-nbsd.h index cf5159f2655e..469919fc152e 100644 --- a/gnu/dist/gdb/config/i386/tm-nbsd.h +++ b/gnu/dist/gdb/config/i386/tm-nbsd.h @@ -20,12 +20,22 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef TM_NBSD_H #define TM_NBSD_H -#include "i386/tm-i386bsd.h" +#include "i386/tm-i386.h" #include "tm-nbsd.h" +/* NetBSD supports only the first 16 regs. */ #undef NUM_REGS #define NUM_REGS 16 +/* On NetBSD, sigtramp is above the user stack and immediately below + the user area. Using constants here allows for cross debugging. */ +#define SIGTRAMP_END 0xf7bfe000 /* USRSTACK */ +#define SIGTRAMP_START (SIGTRAMP_END - 64) + +/* Saved Pc. Get it from sigcontext if within sigtramp. */ +/* Offset to saved PC in sigcontext, from . */ +#define SIGCONTEXT_PC_OFFSET 44 + #define JB_ELEMENT_SIZE sizeof(int) /* jmp_buf[_JBLEN] is array of ints */ #define JB_PC 0 /* Setjmp()'s return PC saved here */