From f0d2557ca41c45e3e39b5a1e9f92877f1f882005 Mon Sep 17 00:00:00 2001 From: Peter Schauer Date: Fri, 7 Jan 1994 21:02:39 +0000 Subject: [PATCH] * config/i386/tm-i386v.h, config/m68k/tm-m68k.h, config/mips/tm-mips.h, config/vax/tm-vax.h (CALL_DUMMY_BREAKPOINT_OFFSET): Define. --- gdb/config/i386/tm-i386v.h | 2 ++ gdb/config/m68k/tm-m68k.h | 1 + gdb/config/mips/tm-mips.h | 2 ++ gdb/config/vax/tm-vax.h | 2 ++ 4 files changed, 7 insertions(+) diff --git a/gdb/config/i386/tm-i386v.h b/gdb/config/i386/tm-i386v.h index 3f7d650e7cd..49de3a07712 100644 --- a/gdb/config/i386/tm-i386v.h +++ b/gdb/config/i386/tm-i386v.h @@ -265,6 +265,8 @@ i386_pop_frame PARAMS ((void)); #define CALL_DUMMY_START_OFFSET 0 /* Start execution at beginning of dummy */ +#define CALL_DUMMY_BREAKPOINT_OFFSET 5 + /* Insert the specified number of args and function address into a call sequence of the above form stored at DUMMYNAME. */ diff --git a/gdb/config/m68k/tm-m68k.h b/gdb/config/m68k/tm-m68k.h index c7f64e0415d..9b830fd2130 100644 --- a/gdb/config/m68k/tm-m68k.h +++ b/gdb/config/m68k/tm-m68k.h @@ -360,6 +360,7 @@ extern const struct ext_format ext_format_68881; #define CALL_DUMMY {0xf227e0ff, 0x48e7fffc, 0x426742e7, 0x4eb93232, 0x3232dffc, 0x69696969, (0x4e404e71 | (BPT_VECTOR << 16))} #define CALL_DUMMY_LENGTH 28 /* Size of CALL_DUMMY */ #define CALL_DUMMY_START_OFFSET 12 /* Offset to jsr instruction*/ +#define CALL_DUMMY_BREAKPOINT_OFFSET (CALL_DUMMY_START_OFFSET + 12) /* Insert the specified number of args and function address into a call sequence of the above form stored at DUMMYNAME. diff --git a/gdb/config/mips/tm-mips.h b/gdb/config/mips/tm-mips.h index 5bc947f8827..5a56666318f 100644 --- a/gdb/config/mips/tm-mips.h +++ b/gdb/config/mips/tm-mips.h @@ -319,6 +319,8 @@ extern int in_sigtramp PARAMS ((CORE_ADDR, char *)); #define CALL_DUMMY_START_OFFSET 12 +#define CALL_DUMMY_BREAKPOINT_OFFSET (CALL_DUMMY_START_OFFSET + (12 * 4)) + /* Insert the specified number of args and function address into a call sequence of the above form stored at DUMMYNAME. */ diff --git a/gdb/config/vax/tm-vax.h b/gdb/config/vax/tm-vax.h index 16718707ad6..9f2b1e4cb52 100644 --- a/gdb/config/vax/tm-vax.h +++ b/gdb/config/vax/tm-vax.h @@ -321,6 +321,8 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #define CALL_DUMMY_START_OFFSET 0 /* Start execution at beginning of dummy */ +#define CALL_DUMMY_BREAKPOINT_OFFSET 7 + /* Insert the specified number of args and function address into a call sequence of the above form stored at DUMMYNAME. */ -- 2.30.2