This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[commit] Delete DEPRECATED_FIX_CALL_DUMMY
- From: Andrew Cagney <cagney at gnu dot org>
- To: gdb-patches at sources dot redhat dot com
- Date: Sat, 08 May 2004 17:55:54 -0400
- Subject: [commit] Delete DEPRECATED_FIX_CALL_DUMMY
DEPRECATED_FIX_CALL_DUMMY was being called in two cases:
- to patch up a non-generic-dummy-frame call sequence
Already deleted
- as a hack to patch extra registers
Only done by HP and now fixed (but the call remains).
Consequently, this deletes FIX_CALL_DUMMY along with that remaining call.
committed,
Andrew
2004-05-08 Andrew Cagney <cagney@redhat.com>
* gdbint.texinfo (Target Architecture Definition): Delete
references to DEPRECATED_FIX_CALL_DUMMY.
2004-05-08 Andrew Cagney <cagney@redhat.com>
* gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
* gdbarch.h, gdbarch.c: Re-generate.
* ns32k-tdep.c (ns32k_gdbarch_init): Do not set
deprecated_fix_call_dummy.
* v850-tdep.c (v850_gdbarch_init): Ditto.
* infcall.c (call_function_by_hand): Do not call
DEPRECATED_FIX_CALL_DUMMY.
Index: gdbarch.sh
===================================================================
RCS file: /cvs/src/src/gdb/gdbarch.sh,v
retrieving revision 1.316
diff -p -u -r1.316 gdbarch.sh
--- gdbarch.sh 8 May 2004 21:27:02 -0000 1.316
+++ gdbarch.sh 8 May 2004 21:43:01 -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_FIX_CALL_DUMMY can be deleted. For the SPARC, implement
-# PUSH_DUMMY_CODE and set CALL_DUMMY_LOCATION to ON_STACK.
-F::DEPRECATED_FIX_CALL_DUMMY:void:deprecated_fix_call_dummy:char *dummy, CORE_ADDR pc, CORE_ADDR fun, int nargs, struct value **args, struct type *type, int gcc_p:dummy, pc, fun, nargs, args, type, gcc_p
-# This is a replacement for DEPRECATED_FIX_CALL_DUMMY et.al.
M::PUSH_DUMMY_CODE:CORE_ADDR:push_dummy_code:CORE_ADDR sp, CORE_ADDR funaddr, int using_gcc, struct value **args, int nargs, struct type *value_type, CORE_ADDR *real_pc, CORE_ADDR *bp_addr:sp, funaddr, using_gcc, args, nargs, value_type, real_pc, bp_addr
F:2:DEPRECATED_DO_REGISTERS_INFO:void:deprecated_do_registers_info:int reg_nr, int fpregs:reg_nr, fpregs
Index: infcall.c
===================================================================
RCS file: /cvs/src/src/gdb/infcall.c,v
retrieving revision 1.45
diff -p -u -r1.45 infcall.c
--- infcall.c 8 May 2004 20:48:52 -0000 1.45
+++ infcall.c 8 May 2004 21:43:01 -0000
@@ -451,18 +451,6 @@ call_function_by_hand (struct value *fun
}
break;
case AT_ENTRY_POINT:
- if (DEPRECATED_FIX_CALL_DUMMY_P ()
- && !gdbarch_push_dummy_call_p (current_gdbarch))
- {
- /* Sigh. Some targets use DEPRECATED_FIX_CALL_DUMMY to
- shove extra stuff onto the stack or into registers. That
- code should be in PUSH_DUMMY_CALL, however, in the mean
- time ... */
- /* If the target is manipulating DUMMY1, it looses big time. */
- void *dummy1 = NULL;
- DEPRECATED_FIX_CALL_DUMMY (dummy1, sp, funaddr, nargs, args,
- value_type, using_gcc);
- }
real_pc = funaddr;
dummy_addr = entry_point_address ();
/* Make certain that the address points at real code, and not a
Index: ns32k-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/ns32k-tdep.c,v
retrieving revision 1.73
diff -p -u -r1.73 ns32k-tdep.c
--- ns32k-tdep.c 8 May 2004 21:27:02 -0000 1.73
+++ ns32k-tdep.c 8 May 2004 21:43:01 -0000
@@ -551,7 +551,6 @@ ns32k_gdbarch_init (struct gdbarch_info
/* Call dummy info */
set_gdbarch_deprecated_pop_frame (gdbarch, ns32k_pop_frame);
set_gdbarch_call_dummy_location (gdbarch, ON_STACK);
- set_gdbarch_deprecated_fix_call_dummy (gdbarch, ns32k_fix_call_dummy);
/* Breakpoint info */
set_gdbarch_breakpoint_from_pc (gdbarch, ns32k_breakpoint_from_pc);
Index: v850-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/v850-tdep.c,v
retrieving revision 1.84
diff -p -u -r1.84 v850-tdep.c
--- v850-tdep.c 8 May 2004 21:27:02 -0000 1.84
+++ v850-tdep.c 8 May 2004 21:43:01 -0000
@@ -1254,7 +1254,6 @@ v850_gdbarch_init (struct gdbarch_info i
set_gdbarch_deprecated_store_struct_return (gdbarch, v850_store_struct_return);
set_gdbarch_deprecated_store_return_value (gdbarch, v850_store_return_value);
set_gdbarch_use_struct_convention (gdbarch, v850_use_struct_convention);
- set_gdbarch_deprecated_fix_call_dummy (gdbarch, v850_fix_call_dummy);
set_gdbarch_breakpoint_from_pc (gdbarch, v850_breakpoint_from_pc);
set_gdbarch_int_bit (gdbarch, 4 * TARGET_CHAR_BIT);
Index: doc/gdbint.texinfo
===================================================================
RCS file: /cvs/src/src/gdb/doc/gdbint.texinfo,v
retrieving revision 1.201
diff -p -u -r1.201 gdbint.texinfo
--- doc/gdbint.texinfo 8 May 2004 21:27:03 -0000 1.201
+++ doc/gdbint.texinfo 8 May 2004 21:43:04 -0000
@@ -3658,7 +3658,6 @@ This method replaces @code{DEPRECATED_PU
@item CORE_ADDR push_dummy_code (@var{gdbarch}, @var{sp}, @var{funaddr}, @var{using_gcc}, @var{args}, @var{nargs}, @var{value_type}, @var{real_pc}, @var{bp_addr})
@findex push_dummy_code
-@findex DEPRECATED_FIX_CALL_DUMMY
@anchor{push_dummy_code} Given a stack based call dummy, push the
instruction sequence (including space for a breakpoint) to which the
called function should return.
@@ -3672,7 +3671,7 @@ By default, the stack is grown sufficien
reserved for that breakpoint, and @var{real_pc} set to @var{funaddr}.
This method replaces @code{CALL_DUMMY_LOCATION},
-@code{DEPRECATED_REGISTER_SIZE}, and @code{DEPRECATED_FIX_CALL_DUMMY}.
+@code{DEPRECATED_REGISTER_SIZE}.
@item DEPRECATED_REGISTER_BYTES
@findex DEPRECATED_REGISTER_BYTES