This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[commit] Delete deprecated_pc_in_call_dummy_at_entry_point
- From: Andrew Cagney <cagney at gnu dot org>
- To: gdb-patches at sources dot redhat dot com
- Date: Sun, 21 Mar 2004 20:45:26 -0500
- Subject: [commit] Delete deprecated_pc_in_call_dummy_at_entry_point
Hello,
The mn10300, which implements generic dummy frames, was the only code
using deprecated_pc_in_call_dummy_at_entry_point. Since, with it not
set, equivalent generic code is enabled, I've deleted the method.
committed,
Andrew
2004-03-21 Andrew Cagney <cagney@redhat.com>
* inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
declaration and out-of-date comment.
* blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
Delete function.
* mn10300-tdep.c (mn10300_gdbarch_init): Do not set
deprecated_pc_in_call_dummy.
Index: blockframe.c
===================================================================
RCS file: /cvs/src/src/gdb/blockframe.c,v
retrieving revision 1.93
diff -u -r1.93 blockframe.c
--- blockframe.c 16 Mar 2004 20:25:24 -0000 1.93
+++ blockframe.c 22 Mar 2004 01:40:47 -0000
@@ -585,14 +585,6 @@
&& INNER_THAN ((pc), (frame_address)));
}
-int
-deprecated_pc_in_call_dummy_at_entry_point (CORE_ADDR pc, CORE_ADDR sp,
- CORE_ADDR frame_address)
-{
- CORE_ADDR addr = entry_point_address ();
- return ((pc) >= addr && (pc) <= (addr + DECR_PC_AFTER_BREAK));
-}
-
/* Returns true for a user frame or a call_function_by_hand dummy
frame, and false for the CRT0 start-up frame. Purpose is to
terminate backtrace. */
Index: inferior.h
===================================================================
RCS file: /cvs/src/src/gdb/inferior.h,v
retrieving revision 1.60
diff -u -r1.60 inferior.h
--- inferior.h 31 Oct 2003 22:38:22 -0000 1.60
+++ inferior.h 22 Mar 2004 01:40:47 -0000
@@ -463,15 +463,6 @@
CORE_ADDR sp,
CORE_ADDR frame_address);
-/* NOTE: cagney/2002-11-24: Targets need to both switch to generic
- dummy frames, and use generic_pc_in_call_dummy(). The generic
- version should be able to handle all cases since that code works by
- saving the address of the dummy's breakpoint (where ever it is). */
-
-extern int deprecated_pc_in_call_dummy_at_entry_point (CORE_ADDR pc,
- CORE_ADDR sp,
- CORE_ADDR frame_address);
-
/* If STARTUP_WITH_SHELL is set, GDB's "run"
will attempts to start up the debugee under a shell.
This is in order for argument-expansion to occur. E.g.,
Index: mn10300-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/mn10300-tdep.c,v
retrieving revision 1.101
diff -u -r1.101 mn10300-tdep.c
--- mn10300-tdep.c 14 Feb 2004 15:46:33 -0000 1.101
+++ mn10300-tdep.c 22 Mar 2004 01:40:48 -0000
@@ -1185,7 +1185,6 @@
/* Calling functions in the inferior from GDB. */
set_gdbarch_deprecated_call_dummy_words (gdbarch, mn10300_call_dummy_words);
set_gdbarch_deprecated_sizeof_call_dummy_words (gdbarch, sizeof (mn10300_call_dummy_words));
- set_gdbarch_deprecated_pc_in_call_dummy (gdbarch, deprecated_pc_in_call_dummy_at_entry_point);
set_gdbarch_deprecated_push_arguments (gdbarch, mn10300_push_arguments);
set_gdbarch_deprecated_reg_struct_has_addr
(gdbarch, mn10300_reg_struct_has_addr);