aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@linux-m68k.org>2003-07-23 18:33:22 +0000
committerAndreas Schwab <schwab@linux-m68k.org>2003-07-23 18:33:22 +0000
commite7c7a75cd56b7d7e7d3d8610f6b27dc180d83d91 (patch)
treec957fcf121ed4e1837d1c0fdcaf18094264d89c4
parent6dbfdfbd4360c94389bff79f7b949871c290e1e1 (diff)
downloadgdb-e7c7a75cd56b7d7e7d3d8610f6b27dc180d83d91.zip
gdb-e7c7a75cd56b7d7e7d3d8610f6b27dc180d83d91.tar.gz
gdb-e7c7a75cd56b7d7e7d3d8610f6b27dc180d83d91.tar.bz2
* 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.
-rw-r--r--gdb/ChangeLog7
-rw-r--r--gdb/ia64-tdep.c12
2 files changed, 16 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 1f0fc69..4271182 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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 Elena Zannoni <ezannoni@redhat.com>
* dwarf2loc.c (locexpr_describe_location): Fix typos.
diff --git a/gdb/ia64-tdep.c b/gdb/ia64-tdep.c
index e9ee27e..103ff63 100644
--- a/gdb/ia64-tdep.c
+++ b/gdb/ia64-tdep.c
@@ -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;
}