aboutsummaryrefslogtreecommitdiff
path: root/gdb/arm-tdep.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2000-09-06 23:39:15 +0000
committerAndrew Cagney <cagney@redhat.com>2000-09-06 23:39:15 +0000
commit3bb04bddc31dde4fac4c974d77dcfca097ba071a (patch)
tree887ec075c78d4abdd777721d58715278dc5badf3 /gdb/arm-tdep.c
parent492055e63351f3e50634e94b60bb146ede9a537b (diff)
downloadgdb-3bb04bddc31dde4fac4c974d77dcfca097ba071a.zip
gdb-3bb04bddc31dde4fac4c974d77dcfca097ba071a.tar.gz
gdb-3bb04bddc31dde4fac4c974d77dcfca097ba071a.tar.bz2
Wed Sep 6 23:15:43 2000 Andrew Cagney <cagney@b1.cygnus.com>
* remote-rdi.c (voiddummy): Update function signature to match struct Dbg_HostosInterface's reset method. * remote-rdp.c (rdp_step): Fix handle parameter to remote_rdp_insert_breakpoint and remote_rdp_remove_breakpoint. * arm-tdep.c (SIGCONTEXT_REGISTER_ADDRESS_P): Provide default definition. (arm_init_extra_frame_info): Use.
Diffstat (limited to 'gdb/arm-tdep.c')
-rw-r--r--gdb/arm-tdep.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c
index d51c6a0..00d63cc 100644
--- a/gdb/arm-tdep.c
+++ b/gdb/arm-tdep.c
@@ -51,8 +51,13 @@
done. It should not be necessary to modify the code below where
this macro is used. */
-#ifndef SIGCONTEXT_REGISTER_ADDRESS
-#define SIGCONTEXT_REGISTER_ADDRESS 0
+#ifdef SIGCONTEXT_REGISTER_ADDRESS
+#ifndef SIGCONTEXT_REGISTER_ADDRESS_P
+#define SIGCONTEXT_REGISTER_ADDRESS_P() 1
+#endif
+#else
+#define SIGCONTEXT_REGISTER_ADDRESS(SP,PC,REG) 0
+#define SIGCONTEXT_REGISTER_ADDRESS_P() 0
#endif
extern void _initialize_arm_tdep (void);
@@ -1040,7 +1045,7 @@ arm_init_extra_frame_info (int fromleaf, struct frame_info *fi)
to first fetch the name of the function and then pass this name
to IN_SIGTRAMP. */
- if (SIGCONTEXT_REGISTER_ADDRESS
+ if (SIGCONTEXT_REGISTER_ADDRESS_P ()
&& (fi->signal_handler_caller || IN_SIGTRAMP (fi->pc, 0)))
{
CORE_ADDR sp;