aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbarch.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2003-09-04 00:05:52 +0000
committerAndrew Cagney <cagney@redhat.com>2003-09-04 00:05:52 +0000
commitf6c4061856e6d65eac2392c589395153bfb2d38b (patch)
treed8a5f0ac6af3c62d795231ab510eca7504d1e06c /gdb/gdbarch.c
parentc8f3944783aed0e4aab78018f1da615484dab2e1 (diff)
downloadgdb-f6c4061856e6d65eac2392c589395153bfb2d38b.zip
gdb-f6c4061856e6d65eac2392c589395153bfb2d38b.tar.gz
gdb-f6c4061856e6d65eac2392c589395153bfb2d38b.tar.bz2
2003-09-03 Andrew Cagney <cagney@redhat.com>
* arch-utils.h (legacy_print_insn): Delete declaration. * arch-utils.c (legacy_print_insn): Delete function. * disasm.c (deprecated_tm_print_insn_info): Delete. (_initialize_disasm): Delete function, contained code initializing deprecated_tm_print_insn_info. * gdbarch.sh (deprecated_tm_print_insn): Delete. (deprecated_tm_print_insn_info): Delete. (TARGET_PRINT_INSN): Do not provide a default. * gdbarch.h, gdbarch.c: Re-generate.
Diffstat (limited to 'gdb/gdbarch.c')
-rw-r--r--gdb/gdbarch.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/gdb/gdbarch.c b/gdb/gdbarch.c
index 523dfac..b523935 100644
--- a/gdb/gdbarch.c
+++ b/gdb/gdbarch.c
@@ -544,7 +544,6 @@ gdbarch_alloc (const struct gdbarch_info *info,
current_gdbarch->convert_from_func_ptr_addr = core_addr_identity;
current_gdbarch->addr_bits_remove = core_addr_identity;
current_gdbarch->smash_text_address = core_addr_identity;
- current_gdbarch->print_insn = legacy_print_insn;
current_gdbarch->skip_trampoline_code = generic_skip_trampoline_code;
current_gdbarch->in_solib_call_trampoline = generic_in_solib_call_trampoline;
current_gdbarch->in_solib_return_trampoline = generic_in_solib_return_trampoline;
@@ -599,7 +598,6 @@ verify_gdbarch (struct gdbarch *gdbarch)
struct cleanup *cleanups;
long dummy;
char *buf;
- /* Only perform sanity checks on a multi-arch target. */
log = mem_fileopen ();
cleanups = make_cleanup_ui_file_delete (log);
/* fundamental */
@@ -743,7 +741,9 @@ verify_gdbarch (struct gdbarch *gdbarch)
/* 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 */
- /* Skip verify of print_insn, invalid_p == 0 */
+ if ((GDB_MULTI_ARCH > GDB_MULTI_ARCH_PARTIAL)
+ && (gdbarch->print_insn == 0))
+ fprintf_unfiltered (log, "\n\tprint_insn");
/* Skip verify of skip_trampoline_code, invalid_p == 0 */
/* Skip verify of in_solib_call_trampoline, invalid_p == 0 */
/* Skip verify of in_solib_return_trampoline, invalid_p == 0 */
@@ -5948,11 +5948,6 @@ gdbarch_update_p (struct gdbarch_info info)
}
-/* Disassembler */
-
-/* Pointer to the target-dependent disassembly function. */
-int (*deprecated_tm_print_insn) (bfd_vma, disassemble_info *);
-
extern void _initialize_gdbarch (void);
void