diff options
author | Mark Kettenis <kettenis@gnu.org> | 2000-07-07 00:30:35 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2000-07-07 00:30:35 +0000 |
commit | f19ebbbc84d82398ddf408cd0817c60b84651457 (patch) | |
tree | 649bef4413d1852b91cf160141ad6975b0454391 /gdb/config | |
parent | a48bb0b38438edcbce81daff4ec6735e197f97d4 (diff) | |
download | gdb-f19ebbbc84d82398ddf408cd0817c60b84651457.zip gdb-f19ebbbc84d82398ddf408cd0817c60b84651457.tar.gz gdb-f19ebbbc84d82398ddf408cd0817c60b84651457.tar.bz2 |
* config/i386/tm-linux.h: Add longjmp support.
(JB_ELEMENT_SIZE, JB_PC): New defines.
(GET_LONGJMP_TARGET): Define.
(get_longjmp_target): Add prototype.
Diffstat (limited to 'gdb/config')
-rw-r--r-- | gdb/config/i386/tm-linux.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gdb/config/i386/tm-linux.h b/gdb/config/i386/tm-linux.h index d6a4616..1572a30 100644 --- a/gdb/config/i386/tm-linux.h +++ b/gdb/config/i386/tm-linux.h @@ -136,5 +136,22 @@ extern CORE_ADDR i386_linux_skip_solib_resolver (CORE_ADDR pc); /* N_FUN symbols in shared libaries have 0 for their values and need to be relocated. */ #define SOFUN_ADDRESS_MAYBE_MISSING + + +/* Support for longjmp. */ + +/* Details about jmp_buf. It's supposed to be an array of integers. */ + +#define JB_ELEMENT_SIZE 4 /* Size of elements in jmp_buf. */ +#define JB_PC 5 /* Array index of saved PC. */ + +/* Figure out where the longjmp will land. Slurp the args out of the + stack. We expect the first arg to be a pointer to 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) +extern int get_longjmp_target (CORE_ADDR *addr); #endif /* #ifndef TM_LINUX_H */ |