This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[obish] inline some PC_IN_SIGTRAMP calls
- From: Andrew Cagney <cagney at gnu dot org>
- To: gdb-patches at sources dot redhat dot com
- Date: Fri, 30 Apr 2004 19:49:49 -0400
- Subject: [obish] inline some PC_IN_SIGTRAMP calls
Neither the ia64, nor the ARM set deprecated_pc_in_sigtramp. This means
that any calls to that macro are really calls to legacy_pc_in_sigtramp.
This patch eliminates the indirection, and in doing eliminates two more
calls to pc_in_sigtramp.
Committed,
Andrew
2004-04-30 Andrew Cagney <cagney@redhat.com>
* arm-tdep.c (arm_sigtramp_unwind_sniffer): Call legacy_pc_in_sigtramp.
* ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
Index: arm-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/arm-tdep.c,v
retrieving revision 1.170
diff -p -u -r1.170 arm-tdep.c
--- arm-tdep.c 22 Apr 2004 17:02:31 -0000 1.170
+++ arm-tdep.c 30 Apr 2004 23:42:31 -0000
@@ -1135,13 +1135,8 @@ struct frame_unwind arm_sigtramp_unwind
static const struct frame_unwind *
arm_sigtramp_unwind_sniffer (struct frame_info *next_frame)
{
- /* Note: If an ARM DEPRECATED_PC_IN_SIGTRAMP method ever needs to
- compare against the name of the function, the code below will
- have to be changed to first fetch the name of the function and
- then pass this name to DEPRECATED_PC_IN_SIGTRAMP. */
-
if (SIGCONTEXT_REGISTER_ADDRESS_P ()
- && DEPRECATED_PC_IN_SIGTRAMP (frame_pc_unwind (next_frame), (char *) 0))
+ && legacy_pc_in_sigtramp (frame_pc_unwind (next_frame), (char *) 0))
return &arm_sigtramp_unwind;
return NULL;
Index: ia64-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/ia64-tdep.c,v
retrieving revision 1.120
diff -p -u -r1.120 ia64-tdep.c
--- ia64-tdep.c 14 Apr 2004 15:18:05 -0000 1.120
+++ ia64-tdep.c 30 Apr 2004 23:42:31 -0000
@@ -2048,7 +2048,7 @@ ia64_sigtramp_frame_sniffer (struct fram
CORE_ADDR pc = frame_pc_unwind (next_frame);
find_pc_partial_function (pc, &name, NULL, NULL);
- if (DEPRECATED_PC_IN_SIGTRAMP (pc, name))
+ if (legacy_pc_in_sigtramp (pc, name))
return &ia64_sigtramp_frame_unwind;
return NULL;