diff options
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/m68hc11-tdep.c | 5 |
2 files changed, 7 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 96ad241..f224247 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr> + + * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn. + (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead. + 2002-03-06 Andrew Cagney <ac131313@redhat.com> * cli/cli-decode.c (set_cmd_completer): New function. diff --git a/gdb/m68hc11-tdep.c b/gdb/m68hc11-tdep.c index 77d7ebf..630accf 100644 --- a/gdb/m68hc11-tdep.c +++ b/gdb/m68hc11-tdep.c @@ -1,5 +1,5 @@ /* Target-dependent code for Motorola 68HC11 & 68HC12 - Copyright 1999, 2000, 2001 Free Software Foundation, Inc. + Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc. Contributed by Stephane Carrez, stcarrez@worldnet.fr This file is part of GDB. @@ -1155,6 +1155,7 @@ m68hc11_gdbarch_init (struct gdbarch_info info, set_gdbarch_function_start_offset (gdbarch, 0); set_gdbarch_breakpoint_from_pc (gdbarch, m68hc11_breakpoint_from_pc); set_gdbarch_stack_align (gdbarch, m68hc11_stack_align); + set_gdbarch_print_insn (gdbarch, gdb_print_insn_m68hc11); set_gdbarch_believe_pcc_promotion (gdbarch, 1); @@ -1166,8 +1167,6 @@ _initialize_m68hc11_tdep (void) { register_gdbarch_init (bfd_arch_m68hc11, m68hc11_gdbarch_init); register_gdbarch_init (bfd_arch_m68hc12, m68hc11_gdbarch_init); - if (!tm_print_insn) /* Someone may have already set it */ - tm_print_insn = gdb_print_insn_m68hc11; add_com ("regs", class_vars, show_regs, "Print all registers"); } |