diff options
author | John Gilmore <gnu@cygnus> | 1992-10-16 10:47:34 +0000 |
---|---|---|
committer | John Gilmore <gnu@cygnus> | 1992-10-16 10:47:34 +0000 |
commit | 2268d619462dfcaf7055aede6cde6f7015be29ba (patch) | |
tree | ce9959452b2add6e01740f5860fcc2f73f97cabe /gdb/mips-tdep.c | |
parent | c3bbca3aad11d35978fbd96c6672eb4cbe6960f3 (diff) | |
download | gdb-2268d619462dfcaf7055aede6cde6f7015be29ba.zip gdb-2268d619462dfcaf7055aede6cde6f7015be29ba.tar.gz gdb-2268d619462dfcaf7055aede6cde6f7015be29ba.tar.bz2 |
Avoid longjmp()-catching compilation errors in cross-ports.
* doc/gdbint.texinfo: Update GET_LONGJMP_TARGET, L_SET doc.
* irix4-nat.c, mips-nat.c (JB_ELEMENT_SIZE, get_longjmp_target):
Move from mips-tdep.c and tm-{irix3,mips}.h.
* mips-nat.c: Remove a bunch of code that was ifdef'd out of
native MIPS ports.
* nm-irix3.h, nm-mips.h (GET_LONGJMP_TARGET): Move from tm-irix3.h
and tm-mips.h.
* ultra3-nat.c (register_addr): Move from ultra3-xdep.c.
(fetch_core_registers): Fix bfd_seek arguments.
Diffstat (limited to 'gdb/mips-tdep.c')
-rw-r--r-- | gdb/mips-tdep.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c index 91413dd..7f7d0f5 100644 --- a/gdb/mips-tdep.c +++ b/gdb/mips-tdep.c @@ -36,12 +36,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include <signal.h> #include <sys/ioctl.h> -#ifdef sgi -/* Must do it this way only for SGIs, as other mips platforms get their - JB_ symbols from machine/pcb.h (included via sys/user.h). */ -#include <setjmp.h> -#endif - #include "gdbcore.h" #include "symfile.h" #include "objfiles.h" @@ -745,25 +739,3 @@ mips_skip_prologue(pc) return pc; } - -/* Figure out where the longjmp will land. - 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 PC. - This routine returns true on success. */ - -int -get_longjmp_target(pc) - CORE_ADDR *pc; -{ - CORE_ADDR jb_addr; - - jb_addr = read_register(A0_REGNUM); - - if (target_read_memory(jb_addr + JB_PC * JB_ELEMENT_SIZE, pc, - sizeof(CORE_ADDR))) - return 0; - - SWAP_TARGET_AND_HOST(pc, sizeof(CORE_ADDR)); - - return 1; -} |