2000-05-04 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
[deliverable/binutils-gdb.git] / gdb / sh-tdep.c
index 6003e829bc72e9434e75fdc18c07b48306b9fa42..1c98cafcee7b6eb719516fd434c63b538443461b 100644 (file)
@@ -88,9 +88,11 @@ static char *sh3e_reg_names[] = {
 };
 /* *INDENT-ON* */
 
-
-
+#ifdef _WIN32_WCE
+char **sh_register_names = sh3_reg_names;
+#else
 char **sh_register_names = sh_generic_reg_names;
+#endif
 
 struct
   {
@@ -104,15 +106,15 @@ sh_processor_type_table[] =
   }
   ,
   {
-    sh3_reg_names, bfd_mach_sh3
+    sh_reg_names, bfd_mach_sh2
   }
   ,
   {
-    sh3e_reg_names, bfd_mach_sh3e
+    sh3_reg_names, bfd_mach_sh3
   }
   ,
   {
-    sh3e_reg_names, bfd_mach_sh4
+    sh3e_reg_names, bfd_mach_sh3e
   }
   ,
   {
@@ -636,10 +638,6 @@ sh_show_regs (args, from_tty)
   else
     cpu = 0;
 
-  /* FIXME: sh4 has more registers */
-  if (cpu == bfd_mach_sh4)
-    cpu = bfd_mach_sh3;
-
   printf_filtered ("PC=%s SR=%08lx PR=%08lx MACH=%08lx MACHL=%08lx\n",
                   paddr (read_register (PC_REGNUM)),
                   (long) read_register (SR_REGNUM),
This page took 0.036376 seconds and 4 git commands to generate.