* ia64-tdep.c (ia64_print_insn): New function.
authorAndreas Schwab <schwab@linux-m68k.org>
Wed, 23 Jul 2003 18:32:20 +0000 (18:32 +0000)
committerAndreas Schwab <schwab@linux-m68k.org>
Wed, 23 Jul 2003 18:32:20 +0000 (18:32 +0000)
(ia64_gdbarch_init): Set print_insn to it.
(_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
deprecated_tm_print_insn_info.

gdb/ChangeLog
gdb/ia64-tdep.c

index 326dd973ca05486692435ea4f970ec8b532e2635..028ae51ad8134e8915035db5f549cb4cf3c360cf 100644 (file)
@@ -1,3 +1,10 @@
+2003-07-23  Andreas Schwab  <schwab@suse.de>
+
+       * ia64-tdep.c (ia64_print_insn): New function.
+       (ia64_gdbarch_init): Set print_insn to it.
+       (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
+       deprecated_tm_print_insn_info.
+
 2003-07-22  Michael Snyder  <msnyder@redhat.com>
 
        * h8300-tdep.c (h8300_extract_return_value): Teach it how to
index ccdc162a2991b903685ba7616082ca606ca2e61d..b6992d90f53393f3e4f820d24ec265b4025823e2 100644 (file)
@@ -2160,6 +2160,13 @@ process_note_abi_tag_sections (bfd *abfd, asection *sect, void *obj)
     }
 }
 
+static int
+ia64_print_insn (bfd_vma memaddr, struct disassemble_info *info)
+{
+  info->bytes_per_line = SLOT_MULTIPLIER;
+  return print_insn_ia64 (memaddr, info);
+}
+
 static struct gdbarch *
 ia64_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
 {
@@ -2313,6 +2320,8 @@ ia64_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
   set_gdbarch_remote_translate_xfer_address (
     gdbarch, ia64_remote_translate_xfer_address);
 
+  set_gdbarch_print_insn (gdbarch, ia64_print_insn);
+
   return gdbarch;
 }
 
@@ -2322,7 +2331,4 @@ void
 _initialize_ia64_tdep (void)
 {
   register_gdbarch_init (bfd_arch_ia64, ia64_gdbarch_init);
-
-  deprecated_tm_print_insn = print_insn_ia64;
-  deprecated_tm_print_insn_info.bytes_per_line = SLOT_MULTIPLIER;
 }