From 650fcc91089ee6dfc1fff74313346434f6fef604 Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Mon, 2 Jun 2003 22:56:52 +0000 Subject: [PATCH] * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ... (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn. --- gdb/ChangeLog | 5 +++++ gdb/m68k-tdep.c | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index fbd301dda9e..e5e104b6d0a 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2003-06-03 Andreas Schwab + + * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ... + (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn. + 2003-06-02 Richard Henderson * alpha-tdep.c (alpha_register_reggroup_p): Zero is only diff --git a/gdb/m68k-tdep.c b/gdb/m68k-tdep.c index a7b87c5357d..44be19da5de 100644 --- a/gdb/m68k-tdep.c +++ b/gdb/m68k-tdep.c @@ -966,6 +966,9 @@ m68k_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) /* Should be using push_dummy_call. */ set_gdbarch_deprecated_dummy_write_sp (gdbarch, generic_target_write_sp); + /* Disassembler. */ + set_gdbarch_print_insn (gdbarch, print_insn_m68k); + #if defined JB_PC && defined JB_ELEMENT_SIZE tdep->jb_pc = JB_PC; tdep->jb_elt_size = JB_ELEMENT_SIZE; @@ -999,5 +1002,4 @@ void _initialize_m68k_tdep (void) { gdbarch_register (bfd_arch_m68k, m68k_gdbarch_init, m68k_dump_tdep); - deprecated_tm_print_insn = print_insn_m68k; } -- 2.30.2