summaryrefslogtreecommitdiff
path: root/gdb/mipsnbsd-tdep.c
diff options
context:
space:
mode:
authorJason Thorpe <thorpej@netbsd.org>2002-08-31 20:28:37 +0000
committerJason Thorpe <thorpej@netbsd.org>2002-08-31 20:28:37 +0000
commit47aacd036f4ed349468380c899475e362ff69d81 (patch)
treed8c651d43d7bd689929373731e7e82fb65670fbb /gdb/mipsnbsd-tdep.c
parentf973e5f8e98b152ff8ebf287da281d7f6e413298 (diff)
downloadgdb-47aacd036f4ed349468380c899475e362ff69d81.tar.gz
* Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
list. (nbsd-tdep.o): Add $(gdb_string_h) to dependency list. * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp. * mipsnbsd-tdep.c: Include nbsd-tdep.h. (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp. * nbsd-tdep.c: Include gdb_string.h. (nbsd_pc_in_sigtramp): New function. * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype. * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function. (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to ppcnbsd_pc_in_sigtramp. * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function. (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to shnbsd_pc_in_sigtramp. * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp. * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
Diffstat (limited to 'gdb/mipsnbsd-tdep.c')
-rw-r--r--gdb/mipsnbsd-tdep.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/mipsnbsd-tdep.c b/gdb/mipsnbsd-tdep.c
index 029ae6f28bc..3367e361bc6 100644
--- a/gdb/mipsnbsd-tdep.c
+++ b/gdb/mipsnbsd-tdep.c
@@ -26,6 +26,7 @@
#include "value.h"
#include "osabi.h"
+#include "nbsd-tdep.h"
#include "mipsnbsd-tdep.h"
#include "solib-svr4.h"
@@ -219,7 +220,8 @@ mipsnbsd_sigtramp_offset (CORE_ADDR pc)
static int
mipsnbsd_pc_in_sigtramp (CORE_ADDR pc, char *func_name)
{
- return (mipsnbsd_sigtramp_offset (pc) >= 0);
+ return (nbsd_pc_in_sigtramp (pc, func_name)
+ || mipsnbsd_sigtramp_offset (pc) >= 0);
}
/* Figure out where the longjmp will land. We expect that we have