This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[commit] Move some more hppa deck chairs
- From: Andrew Cagney <cagney at gnu dot org>
- To: gdb-patches at sources dot redhat dot com
- Date: Sun, 22 Feb 2004 19:04:45 -0500
- Subject: [commit] Move some more hppa deck chairs
Convert macros -> functions.
committed,
Andrew
2004-02-22 Andrew Cagney <cagney@redhat.com>
* config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
(DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
(DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
* hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
call_dummy_location to ON_STACK.
Index: hppa-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/hppa-tdep.c,v
retrieving revision 1.123
diff -u -r1.123 hppa-tdep.c
--- hppa-tdep.c 22 Feb 2004 19:22:37 -0000 1.123
+++ hppa-tdep.c 22 Feb 2004 20:28:25 -0000
@@ -5606,6 +5606,9 @@
set_gdbarch_deprecated_push_dummy_frame (gdbarch, hppa_push_dummy_frame);
/* set_gdbarch_deprecated_fix_call_dummy (gdbarch, hppa_fix_call_dummy); */
set_gdbarch_deprecated_push_arguments (gdbarch, hppa_push_arguments);
+ set_gdbarch_deprecated_use_generic_dummy_frames (gdbarch, 0);
+ set_gdbarch_deprecated_pc_in_call_dummy (gdbarch, deprecated_pc_in_call_dummy_on_stack);
+ set_gdbarch_call_dummy_location (gdbarch, ON_STACK);
}
/* Struct return methods. */
Index: config/pa/tm-hppa.h
===================================================================
RCS file: /cvs/src/src/gdb/config/pa/tm-hppa.h,v
retrieving revision 1.62
diff -u -r1.62 tm-hppa.h
--- config/pa/tm-hppa.h 22 Feb 2004 16:51:37 -0000 1.62
+++ config/pa/tm-hppa.h 22 Feb 2004 20:28:27 -0000
@@ -31,10 +31,6 @@
#define GDB_MULTI_ARCH 1
-/* NOTE: cagney/2002-11-24: This is a guess. */
-#define DEPRECATED_USE_GENERIC_DUMMY_FRAMES 0
-#define CALL_DUMMY_LOCATION ON_STACK
-#define DEPRECATED_PC_IN_CALL_DUMMY(pc, sp, frame_address) deprecated_pc_in_call_dummy_on_stack (pc, sp, frame_address)
/* Hack, get around problem with including "arch-utils.h". */
struct frame_info;