This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[ob] Delete DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET and DEPRECATED_CALL_DUMMY_START_OFFSET
- From: Andrew Cagney <cagney at gnu dot org>
- To: gdb-patches at sources dot redhat dot com
- Date: Sat, 08 May 2004 16:18:49 -0400
- Subject: [ob] Delete DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET and DEPRECATED_CALL_DUMMY_START_OFFSET
Neither are referenced,
committed,
Andrew
2004-05-08 Andrew Cagney <cagney@redhat.com>
* ns32k-tdep.c (ns32k_gdbarch_init): Do not set
deprecated_call_dummy_breakpoint_offset or
deprecated_call_dummy_start_offset.
* dummy-frame.c, arm-tdep.c: Update comments.
* gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
(DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
* gdbarch.h, gdbarch.c: Re-generate.
Index: doc/ChangeLog
2004-05-08 Andrew Cagney <cagney@redhat.com>
* gdbint.texinfo (Target Architecture Definition): Delete
reference to DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET.
Index: arm-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/arm-tdep.c,v
retrieving revision 1.171
diff -p -u -r1.171 arm-tdep.c
--- arm-tdep.c 30 Apr 2004 23:47:56 -0000 1.171
+++ arm-tdep.c 8 May 2004 20:10:46 -0000
@@ -191,7 +191,7 @@ static int target_is_thumb;
/* Flag set by arm_fix_call_dummy that tells whether the calling
function is a Thumb function. This flag is checked by
- arm_pc_is_thumb and arm_call_dummy_breakpoint_offset. */
+ arm_pc_is_thumb. */
static int caller_is_thumb;
Index: dummy-frame.c
===================================================================
RCS file: /cvs/src/src/gdb/dummy-frame.c,v
retrieving revision 1.32
diff -p -u -r1.32 dummy-frame.c
--- dummy-frame.c 1 May 2004 22:41:34 -0000 1.32
+++ dummy-frame.c 8 May 2004 20:10:46 -0000
@@ -151,11 +151,7 @@ deprecated_pc_in_call_dummy (CORE_ADDR p
FIXME: cagney/2002-11-23: This is silly. Surely "infrun.c" can
figure out what the real PC (as in the resume address) is BEFORE
- calling this function (Oh, and I'm not even sure that this function
- is called with an decremented PC, the call to pc_in_call_dummy() in
- that file is conditional on
- !DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET_P yet generic dummy
- targets set DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET. True?). */
+ calling this function. */
static int
pc_in_dummy_frame (CORE_ADDR pc)
Index: gdbarch.sh
===================================================================
RCS file: /cvs/src/src/gdb/gdbarch.sh,v
retrieving revision 1.313
diff -p -u -r1.313 gdbarch.sh
--- gdbarch.sh 8 May 2004 19:03:04 -0000 1.313
+++ gdbarch.sh 8 May 2004 20:10:51 -0000
@@ -525,10 +525,6 @@ F:2:DEPRECATED_DUMMY_WRITE_SP:void:depre
# DEPRECATED_REGISTER_SIZE can be deleted.
v::DEPRECATED_REGISTER_SIZE:int:deprecated_register_size
v::CALL_DUMMY_LOCATION:int:call_dummy_location:::::AT_ENTRY_POINT::0
-# DEPRECATED_CALL_DUMMY_START_OFFSET can be deleted.
-v::DEPRECATED_CALL_DUMMY_START_OFFSET:CORE_ADDR:deprecated_call_dummy_start_offset
-# DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET can be deleted.
-v::DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET:CORE_ADDR:deprecated_call_dummy_breakpoint_offset
# DEPRECATED_CALL_DUMMY_WORDS can be deleted.
v::DEPRECATED_CALL_DUMMY_WORDS:LONGEST *:deprecated_call_dummy_words::::0:legacy_call_dummy_words::0:0x%08lx
# Implement PUSH_DUMMY_CALL, then delete DEPRECATED_SIZEOF_CALL_DUMMY_WORDS.
Index: ns32k-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/ns32k-tdep.c,v
retrieving revision 1.70
diff -p -u -r1.70 ns32k-tdep.c
--- ns32k-tdep.c 8 May 2004 18:37:17 -0000 1.70
+++ ns32k-tdep.c 8 May 2004 20:10:51 -0000
@@ -580,8 +580,6 @@ ns32k_gdbarch_init (struct gdbarch_info
set_gdbarch_deprecated_call_dummy_words (gdbarch, ns32k_call_dummy_words);
set_gdbarch_deprecated_sizeof_call_dummy_words (gdbarch, sizeof_ns32k_call_dummy_words);
set_gdbarch_deprecated_fix_call_dummy (gdbarch, ns32k_fix_call_dummy);
- set_gdbarch_deprecated_call_dummy_start_offset (gdbarch, 3);
- set_gdbarch_deprecated_call_dummy_breakpoint_offset (gdbarch, 15);
/* Breakpoint info */
set_gdbarch_breakpoint_from_pc (gdbarch, ns32k_breakpoint_from_pc);
Index: doc/gdbint.texinfo
===================================================================
RCS file: /cvs/src/src/gdb/doc/gdbint.texinfo,v
retrieving revision 1.198
diff -p -u -r1.198 gdbint.texinfo
--- doc/gdbint.texinfo 1 May 2004 16:52:30 -0000 1.198
+++ doc/gdbint.texinfo 8 May 2004 20:10:59 -0000
@@ -3702,8 +3702,7 @@ reserved for that breakpoint, and @var{r
This method replaces @code{DEPRECATED_CALL_DUMMY_WORDS},
@code{DEPRECATED_SIZEOF_CALL_DUMMY_WORDS}, @code{CALL_DUMMY},
-@code{CALL_DUMMY_LOCATION}, @code{DEPRECATED_REGISTER_SIZE},
-@code{DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET}, and
+@code{CALL_DUMMY_LOCATION}, @code{DEPRECATED_REGISTER_SIZE}, and
@code{DEPRECATED_FIX_CALL_DUMMY}.
@item DEPRECATED_PUSH_DUMMY_FRAME