From Jimi X <jimix@watson.ibm.com>:
authorKevin Buettner <kevinb@redhat.com>
Tue, 9 Apr 2002 00:10:09 +0000 (00:10 +0000)
committerKevin Buettner <kevinb@redhat.com>
Tue, 9 Apr 2002 00:10:09 +0000 (00:10 +0000)
* rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().

gdb/ChangeLog
gdb/rs6000-tdep.c

index da618125574bab8ae2da33ba73f3f34114900b57..e9dbffc157d9c3a55e3364603a9b675aec3569e8 100644 (file)
@@ -1,3 +1,8 @@
+2002-04-08  Kevin Buettner  <kevinb@redhat.com>
+
+       From Jimi X <jimix@watson.ibm.com>:
+       * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
+
 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
 
        From Jimi X <jimix@watson.ibm.com>:
index 828ba02dce5b49ebe158132132caeabecf9b9927..b96f1add4068f1c9e6c8444286b04d33ea841784 100644 (file)
@@ -2536,11 +2536,6 @@ rs6000_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
   gdbarch = gdbarch_alloc (&info, tdep);
   power = arch == bfd_arch_rs6000;
 
-  /* Select instruction printer. */
-  tm_print_insn = arch == power ? print_insn_rs6000 :
-    info.byte_order == BFD_ENDIAN_BIG ? print_insn_big_powerpc :
-      print_insn_little_powerpc;
-
   /* Choose variant. */
   v = find_variant_by_arch (arch, mach);
   if (!v)
@@ -2586,6 +2581,14 @@ rs6000_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
       off += regsize (v->regs + i, wordsize);
     }
 
+  /* Select instruction printer.  Note: tm_print_insn is still used by
+     gdbtk (insight), so we set both tm_print_insn and the gdbarch
+     method.  */
+  tm_print_insn = arch == power ? print_insn_rs6000 :
+    info.byte_order == BFD_ENDIAN_BIG ? print_insn_big_powerpc :
+      print_insn_little_powerpc;
+  set_gdbarch_print_insn (gdbarch, tm_print_insn);
+
   set_gdbarch_read_pc (gdbarch, generic_target_read_pc);
   set_gdbarch_write_pc (gdbarch, generic_target_write_pc);
   set_gdbarch_read_fp (gdbarch, generic_target_read_fp);
This page took 0.02853 seconds and 4 git commands to generate.