This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[patch/rfc] Deprecate init_frame_pc_default
- From: Andrew Cagney <ac131313 at redhat dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Sun, 21 Sep 2003 16:02:00 -0400
- Subject: [patch/rfc] Deprecate init_frame_pc_default
This deprecates init_frame_pc_default so that it's clear that it
shouldn't be used.
I'll commit in a few days,
Andrew
2003-09-21 Andrew Cagney <cagney@redhat.com>
* arch-utils.c (deprecated_init_frame_pc_default): Rename
"init_frame_pc_default".
* arch-utils.h (deprecated_init_frame_pc_default): Update.
* xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
* vax-tdep.c (vax_gdbarch_init): Update.
* v850-tdep.c (v850_gdbarch_init): Update.
* sh64-tdep.c (sh64_gdbarch_init): Update.
* sh-tdep.c (sh_gdbarch_init): Update.
* s390-tdep.c (s390_gdbarch_init): Update.
* ns32k-tdep.c (ns32k_gdbarch_init): Update.
* mcore-tdep.c (mcore_gdbarch_init): Update.
* h8300-tdep.c (h8300_gdbarch_init): Update.
* cris-tdep.c (cris_gdbarch_init): Update.
* config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
Index: arch-utils.c
===================================================================
RCS file: /cvs/src/src/gdb/arch-utils.c,v
retrieving revision 1.93
diff -u -r1.93 arch-utils.c
--- arch-utils.c 17 Sep 2003 19:48:42 -0000 1.93
+++ arch-utils.c 21 Sep 2003 19:57:18 -0000
@@ -235,7 +235,7 @@
}
CORE_ADDR
-init_frame_pc_default (int fromleaf, struct frame_info *prev)
+deprecated_init_frame_pc_default (int fromleaf, struct frame_info *prev)
{
if (fromleaf && DEPRECATED_SAVED_PC_AFTER_CALL_P ())
return DEPRECATED_SAVED_PC_AFTER_CALL (get_next_frame (prev));
Index: arch-utils.h
===================================================================
RCS file: /cvs/src/src/gdb/arch-utils.h,v
retrieving revision 1.55
diff -u -r1.55 arch-utils.h
--- arch-utils.h 17 Sep 2003 19:48:42 -0000 1.55
+++ arch-utils.h 21 Sep 2003 19:57:18 -0000
@@ -87,7 +87,7 @@
extern CORE_ADDR init_frame_pc_noop (int fromleaf, struct frame_info *prev);
-extern CORE_ADDR init_frame_pc_default (int fromleaf, struct frame_info *prev);
+extern CORE_ADDR deprecated_init_frame_pc_default (int fromleaf, struct frame_info *prev);
/* Do nothing version of elf_make_msymbol_special. */
Index: cris-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/cris-tdep.c,v
retrieving revision 1.86
diff -u -r1.86 cris-tdep.c
--- cris-tdep.c 17 Sep 2003 14:24:29 -0000 1.86
+++ cris-tdep.c 21 Sep 2003 19:57:19 -0000
@@ -4126,7 +4126,7 @@
/* NOTE: cagney/2002-12-06: This can be deleted when this arch is
ready to unwind the PC first (see frame.c:get_prev_frame()). */
- set_gdbarch_deprecated_init_frame_pc (gdbarch, init_frame_pc_default);
+ set_gdbarch_deprecated_init_frame_pc (gdbarch, deprecated_init_frame_pc_default);
tdep->cris_version = cris_version;
tdep->cris_mode = cris_mode;
Index: h8300-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/h8300-tdep.c,v
retrieving revision 1.81
diff -u -r1.81 h8300-tdep.c
--- h8300-tdep.c 19 Sep 2003 16:22:38 -0000 1.81
+++ h8300-tdep.c 21 Sep 2003 19:57:19 -0000
@@ -1269,7 +1269,7 @@
/* NOTE: cagney/2002-12-06: This can be deleted when this arch is
ready to unwind the PC first (see frame.c:get_prev_frame()). */
- set_gdbarch_deprecated_init_frame_pc (gdbarch, init_frame_pc_default);
+ set_gdbarch_deprecated_init_frame_pc (gdbarch, deprecated_init_frame_pc_default);
/*
* Basic register fields and methods.
Index: mcore-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/mcore-tdep.c,v
retrieving revision 1.76
diff -u -r1.76 mcore-tdep.c
--- mcore-tdep.c 17 Sep 2003 14:24:30 -0000 1.76
+++ mcore-tdep.c 21 Sep 2003 19:57:19 -0000
@@ -1057,7 +1057,7 @@
/* NOTE: cagney/2002-12-06: This can be deleted when this arch is
ready to unwind the PC first (see frame.c:get_prev_frame()). */
- set_gdbarch_deprecated_init_frame_pc (gdbarch, init_frame_pc_default);
+ set_gdbarch_deprecated_init_frame_pc (gdbarch, deprecated_init_frame_pc_default);
/* Registers: */
Index: ns32k-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/ns32k-tdep.c,v
retrieving revision 1.59
diff -u -r1.59 ns32k-tdep.c
--- ns32k-tdep.c 17 Sep 2003 14:24:30 -0000 1.59
+++ ns32k-tdep.c 21 Sep 2003 19:57:20 -0000
@@ -542,7 +542,7 @@
/* NOTE: cagney/2002-12-06: This can be deleted when this arch is
ready to unwind the PC first (see frame.c:get_prev_frame()). */
- set_gdbarch_deprecated_init_frame_pc (gdbarch, init_frame_pc_default);
+ set_gdbarch_deprecated_init_frame_pc (gdbarch, deprecated_init_frame_pc_default);
/* Register info */
ns32k_gdbarch_init_32082 (gdbarch);
Index: s390-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/s390-tdep.c,v
retrieving revision 1.114
diff -u -r1.114 s390-tdep.c
--- s390-tdep.c 19 Sep 2003 16:22:39 -0000 1.114
+++ s390-tdep.c 21 Sep 2003 19:57:20 -0000
@@ -2570,7 +2570,7 @@
/* NOTE: cagney/2002-12-06: This can be deleted when this arch is
ready to unwind the PC first (see frame.c:get_prev_frame()). */
- set_gdbarch_deprecated_init_frame_pc (gdbarch, init_frame_pc_default);
+ set_gdbarch_deprecated_init_frame_pc (gdbarch, deprecated_init_frame_pc_default);
set_gdbarch_believe_pcc_promotion (gdbarch, 0);
set_gdbarch_char_signed (gdbarch, 0);
Index: sh-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/sh-tdep.c,v
retrieving revision 1.141
diff -u -r1.141 sh-tdep.c
--- sh-tdep.c 16 Sep 2003 18:56:35 -0000 1.141
+++ sh-tdep.c 21 Sep 2003 19:57:20 -0000
@@ -2059,7 +2059,7 @@
/* NOTE: cagney/2002-12-06: This can be deleted when this arch is
ready to unwind the PC first (see frame.c:get_prev_frame()). */
- set_gdbarch_deprecated_init_frame_pc (gdbarch, init_frame_pc_default);
+ set_gdbarch_deprecated_init_frame_pc (gdbarch, deprecated_init_frame_pc_default);
set_gdbarch_short_bit (gdbarch, 2 * TARGET_CHAR_BIT);
set_gdbarch_int_bit (gdbarch, 4 * TARGET_CHAR_BIT);
Index: sh64-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/sh64-tdep.c,v
retrieving revision 1.6
diff -u -r1.6 sh64-tdep.c
--- sh64-tdep.c 17 Sep 2003 14:24:30 -0000 1.6
+++ sh64-tdep.c 21 Sep 2003 19:57:21 -0000
@@ -2848,7 +2848,7 @@
/* NOTE: cagney/2002-12-06: This can be deleted when this arch is
ready to unwind the PC first (see frame.c:get_prev_frame()). */
- set_gdbarch_deprecated_init_frame_pc (gdbarch, init_frame_pc_default);
+ set_gdbarch_deprecated_init_frame_pc (gdbarch, deprecated_init_frame_pc_default);
/* Determine the ABI */
if (info.abfd && bfd_get_arch_size (info.abfd) == 64)
Index: v850-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/v850-tdep.c,v
retrieving revision 1.73
diff -u -r1.73 v850-tdep.c
--- v850-tdep.c 17 Sep 2003 14:24:31 -0000 1.73
+++ v850-tdep.c 21 Sep 2003 19:57:21 -0000
@@ -1213,7 +1213,7 @@
/* NOTE: cagney/2002-12-06: This can be deleted when this arch is
ready to unwind the PC first (see frame.c:get_prev_frame()). */
- set_gdbarch_deprecated_init_frame_pc (gdbarch, init_frame_pc_default);
+ set_gdbarch_deprecated_init_frame_pc (gdbarch, deprecated_init_frame_pc_default);
for (i = 0; v850_processor_type_table[i].regnames != NULL; i++)
{
Index: vax-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/vax-tdep.c,v
retrieving revision 1.62
diff -u -r1.62 vax-tdep.c
--- vax-tdep.c 17 Sep 2003 14:24:31 -0000 1.62
+++ vax-tdep.c 21 Sep 2003 19:57:21 -0000
@@ -348,7 +348,7 @@
/* NOTE: cagney/2002-12-06: This can be deleted when this arch is
ready to unwind the PC first (see frame.c:get_prev_frame()). */
- set_gdbarch_deprecated_init_frame_pc (gdbarch, init_frame_pc_default);
+ set_gdbarch_deprecated_init_frame_pc (gdbarch, deprecated_init_frame_pc_default);
/* Register info */
set_gdbarch_num_regs (gdbarch, VAX_NUM_REGS);
Index: xstormy16-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/xstormy16-tdep.c,v
retrieving revision 1.63
diff -u -r1.63 xstormy16-tdep.c
--- xstormy16-tdep.c 17 Sep 2003 14:24:31 -0000 1.63
+++ xstormy16-tdep.c 21 Sep 2003 19:57:21 -0000
@@ -1026,7 +1026,7 @@
/* NOTE: cagney/2002-12-06: This can be deleted when this arch is
ready to unwind the PC first (see frame.c:get_prev_frame()). */
- set_gdbarch_deprecated_init_frame_pc (gdbarch, init_frame_pc_default);
+ set_gdbarch_deprecated_init_frame_pc (gdbarch, deprecated_init_frame_pc_default);
/*
* Basic register fields and methods.
Index: config/pa/tm-hppa.h
===================================================================
RCS file: /cvs/src/src/gdb/config/pa/tm-hppa.h,v
retrieving revision 1.57
diff -u -r1.57 tm-hppa.h
--- config/pa/tm-hppa.h 20 Sep 2003 17:50:28 -0000 1.57
+++ config/pa/tm-hppa.h 21 Sep 2003 19:57:22 -0000
@@ -35,8 +35,8 @@
#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;
-extern CORE_ADDR init_frame_pc_default (int fromleaf, struct frame_info *prev);
-#define DEPRECATED_INIT_FRAME_PC(l,f) (init_frame_pc_default (l, f))
+extern CORE_ADDR deprecated_init_frame_pc_default (int fromleaf, struct frame_info *prev);
+#define DEPRECATED_INIT_FRAME_PC(l,f) (deprecated_init_frame_pc_default (l, f))
/* Forward declarations of some types we use in prototypes */