aboutsummaryrefslogtreecommitdiff
path: root/gdb/arch-utils.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2004-05-01 13:14:20 +0000
committerAndrew Cagney <cagney@redhat.com>2004-05-01 13:14:20 +0000
commit8c6b0e0607561669f0290799833e2a80a5978a81 (patch)
treeef1d31eecac1301dfef78cbff8dcbc4473c72cd5 /gdb/arch-utils.c
parent03ac2a74f949f0ff3796e2d0a083ac6d88e16c20 (diff)
downloadgdb-8c6b0e0607561669f0290799833e2a80a5978a81.zip
gdb-8c6b0e0607561669f0290799833e2a80a5978a81.tar.gz
gdb-8c6b0e0607561669f0290799833e2a80a5978a81.tar.bz2
2004-05-01 Andrew Cagney <cagney@redhat.com>
* gdbarch.sh (DEPRECATED_SIGTRAMP_START) (DEPRECATED_SIGTRAMP_END): Delete. * gdbarch.h, gdbarch.c: Re-generate. * arch-utils.c (legacy_pc_in_sigtramp): Simplify. * config/vax/tm-vaxbsd.h: Update copyright. (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete. (DEPRECATED_IN_SIGTRAMP): Define. * config/m68k/tm-nbsd.h: Update copyright. (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete. (DEPRECATED_IN_SIGTRAMP): Define.
Diffstat (limited to 'gdb/arch-utils.c')
-rw-r--r--gdb/arch-utils.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/gdb/arch-utils.c b/gdb/arch-utils.c
index d76a8e4..c0e1912 100644
--- a/gdb/arch-utils.c
+++ b/gdb/arch-utils.c
@@ -298,14 +298,10 @@ generic_register_byte (int regnum)
int
legacy_pc_in_sigtramp (CORE_ADDR pc, char *name)
{
-#if !defined (DEPRECATED_IN_SIGTRAMP)
- if (DEPRECATED_SIGTRAMP_START_P ())
- return ((pc) >= DEPRECATED_SIGTRAMP_START (pc)
- && (pc) < DEPRECATED_SIGTRAMP_END (pc));
- else
- return name && strcmp ("_sigtramp", name) == 0;
-#else
+#if defined (DEPRECATED_IN_SIGTRAMP)
return DEPRECATED_IN_SIGTRAMP (pc, name);
+#else
+ return name && strcmp ("_sigtramp", name) == 0;
#endif
}