This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[commit] Drop GDB_MULTI_ARCH_PARTIAL checks in gdbarch validate code
- From: Andrew Cagney <cagney at gnu dot org>
- To: gdb-patches at sources dot redhat dot com
- Date: Thu, 02 Sep 2004 12:02:39 -0400
- Subject: [commit] Drop GDB_MULTI_ARCH_PARTIAL checks in gdbarch validate code
For a few architecture methods, validation was conditional on GDB being
pure-multi-arch. This a hack to work around some architectures not yet
multi-arching those methods. Since all architectures now provide
multi-arch implementations, the hack is no longer needed. Deleted.
committed,
Andrew
2004-09-02 Andrew Cagney <cagney@gnu.org>
* gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
validating architecture methods.
* gdbarch.c: Re-generate.
Index: gdbarch.c
===================================================================
RCS file: /cvs/src/src/gdb/gdbarch.c,v
retrieving revision 1.310
diff -p -u -r1.310 gdbarch.c
--- gdbarch.c 8 Aug 2004 19:49:40 -0000 1.310
+++ gdbarch.c 2 Sep 2004 15:59:44 -0000
@@ -528,8 +528,7 @@ verify_gdbarch (struct gdbarch *current_
/* Skip verify of virtual_frame_pointer, invalid_p == 0 */
/* Skip verify of pseudo_register_read, has predicate */
/* Skip verify of pseudo_register_write, has predicate */
- if ((GDB_MULTI_ARCH > GDB_MULTI_ARCH_PARTIAL)
- && (current_gdbarch->num_regs == -1))
+ if (current_gdbarch->num_regs == -1)
fprintf_unfiltered (log, "\n\tnum_regs");
/* Skip verify of num_pseudo_regs, invalid_p == 0 */
/* Skip verify of sp_regnum, invalid_p == 0 */
@@ -567,14 +566,11 @@ verify_gdbarch (struct gdbarch *current_
/* Skip verify of store_return_value, invalid_p == 0 */
/* Skip verify of deprecated_use_struct_convention, invalid_p == 0 */
/* Skip verify of deprecated_extract_struct_value_address, has predicate */
- if ((GDB_MULTI_ARCH > GDB_MULTI_ARCH_PARTIAL)
- && (current_gdbarch->skip_prologue == 0))
+ if (current_gdbarch->skip_prologue == 0)
fprintf_unfiltered (log, "\n\tskip_prologue");
- if ((GDB_MULTI_ARCH > GDB_MULTI_ARCH_PARTIAL)
- && (current_gdbarch->inner_than == 0))
+ if (current_gdbarch->inner_than == 0)
fprintf_unfiltered (log, "\n\tinner_than");
- if ((GDB_MULTI_ARCH > GDB_MULTI_ARCH_PARTIAL)
- && (current_gdbarch->breakpoint_from_pc == 0))
+ if (current_gdbarch->breakpoint_from_pc == 0)
fprintf_unfiltered (log, "\n\tbreakpoint_from_pc");
/* Skip verify of adjust_breakpoint_address, has predicate */
/* Skip verify of memory_insert_breakpoint, invalid_p == 0 */
@@ -595,8 +591,7 @@ verify_gdbarch (struct gdbarch *current_
/* Skip verify of addr_bits_remove, invalid_p == 0 */
/* Skip verify of smash_text_address, invalid_p == 0 */
/* Skip verify of software_single_step, has predicate */
- if ((GDB_MULTI_ARCH > GDB_MULTI_ARCH_PARTIAL)
- && (current_gdbarch->print_insn == 0))
+ if (current_gdbarch->print_insn == 0)
fprintf_unfiltered (log, "\n\tprint_insn");
/* Skip verify of skip_trampoline_code, invalid_p == 0 */
/* Skip verify of skip_solib_resolver, invalid_p == 0 */
Index: gdbarch.sh
===================================================================
RCS file: /cvs/src/src/gdb/gdbarch.sh,v
retrieving revision 1.346
diff -p -u -r1.346 gdbarch.sh
--- gdbarch.sh 2 Sep 2004 14:30:44 -0000 1.346
+++ gdbarch.sh 2 Sep 2004 15:59:44 -0000
@@ -1451,13 +1451,11 @@ do
printf " current_gdbarch->${function} = ${postdefault};\n"
elif [ -n "${invalid_p}" ]
then
- printf " if ((GDB_MULTI_ARCH > GDB_MULTI_ARCH_PARTIAL)\n"
- printf " && (${invalid_p}))\n"
+ printf " if (${invalid_p})\n"
printf " fprintf_unfiltered (log, \"\\\\n\\\\t${function}\");\n"
elif [ -n "${predefault}" ]
then
- printf " if ((GDB_MULTI_ARCH > GDB_MULTI_ARCH_PARTIAL)\n"
- printf " && (current_gdbarch->${function} == ${predefault}))\n"
+ printf " if (current_gdbarch->${function} == ${predefault})\n"
printf " fprintf_unfiltered (log, \"\\\\n\\\\t${function}\");\n"
fi
fi