* arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
authorRichard Earnshaw <richard.earnshaw@arm.com>
Tue, 25 Mar 2003 14:52:33 +0000 (14:52 +0000)
committerRichard Earnshaw <richard.earnshaw@arm.com>
Tue, 25 Mar 2003 14:52:33 +0000 (14:52 +0000)
(_initialize_arm_tdep): Don't set tm_print_insn.

gdb/ChangeLog
gdb/arm-tdep.c

index 4c3623e27681b73ef3ed9770098131efaadca724..d555a521cf3daeb429bcb84a6cb8a323b2c836b8 100644 (file)
@@ -1,3 +1,8 @@
+2003-03-25  Richard Earnshaw  <rearnsha@arm.com>
+
+       * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
+       (_initialize_arm_tdep): Don't set tm_print_insn.
+
 2003-03-24  Adam Fedor  <fedor@gnu.org>
 
        * Makefile.in (YYOBJ): Add objc-exp.tab.o
index 94918dbc96bfa824956980ec2699a2a984817c84..f2c8951839ed6917bbe76e7c0b084cf1ace2b2df 100644 (file)
@@ -3004,6 +3004,9 @@ arm_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
   /* XXX For an RDI target we should ask the target if it can single-step.  */
   set_gdbarch_software_single_step (gdbarch, arm_software_single_step);
 
+  /* Disassembly.  */
+  set_gdbarch_print_insn (gdbarch, gdb_print_insn_arm);
+
   /* Minsymbol frobbing.  */
   set_gdbarch_elf_make_msymbol_special (gdbarch, arm_elf_make_msymbol_special);
   set_gdbarch_coff_make_msymbol_special (gdbarch,
@@ -3102,8 +3105,6 @@ _initialize_arm_tdep (void)
   gdbarch_register_osabi (bfd_arch_arm, 0, GDB_OSABI_ARM_APCS,
                           arm_init_abi_apcs);
 
-  tm_print_insn = gdb_print_insn_arm;
-
   /* Get the number of possible sets of register names defined in opcodes.  */
   num_disassembly_options = get_arm_regname_num_options ();