2003-06-02 Andrew Cagney <cagney@redhat.com>
authorAndrew Cagney <cagney@redhat.com>
Tue, 3 Jun 2003 01:24:42 +0000 (01:24 +0000)
committerAndrew Cagney <cagney@redhat.com>
Tue, 3 Jun 2003 01:24:42 +0000 (01:24 +0000)
* alpha-tdep.c (alpha_gdbarch_init): Set convert_register_p,
register_to_value, and value_to_register, instead of
register_convertible, register_convert_to_raw, and
register_convert_to_virtual.
* rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
* ia64-tdep.c (ia64_gdbarch_init): Ditto.
* i386-tdep.c (i386_gdbarch_init): Ditto.
* sparc-tdep.c (sparc_print_registers): Delete call to
REGISTER_CONVERTIBLE.
(sparc_gdbarch_init): Do not set register_convertible.
* m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
* frv-tdep.c (frv_gdbarch_init): Ditto.
* cris-tdep.c (cris_gdbarch_init): Ditto.

gdb/ChangeLog
gdb/cris-tdep.c
gdb/frv-tdep.c
gdb/m68hc11-tdep.c
gdb/sparc-tdep.c

index 62dff2b3b8e6fd90b207e9b6676a0ec820029e3a..439520b902b1e37238d3035cef61fe42b4d2122b 100644 (file)
@@ -1,3 +1,19 @@
+2003-06-02  Andrew Cagney  <cagney@redhat.com>
+
+       * alpha-tdep.c (alpha_gdbarch_init): Set convert_register_p,
+       register_to_value, and value_to_register, instead of
+       register_convertible, register_convert_to_raw, and
+       register_convert_to_virtual.
+       * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
+       * ia64-tdep.c (ia64_gdbarch_init): Ditto.
+       * i386-tdep.c (i386_gdbarch_init): Ditto.
+       * sparc-tdep.c (sparc_print_registers): Delete call to
+       REGISTER_CONVERTIBLE.
+       (sparc_gdbarch_init): Do not set register_convertible.
+       * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
+       * frv-tdep.c (frv_gdbarch_init): Ditto.
+       * cris-tdep.c (cris_gdbarch_init): Ditto.
+
 2003-06-02  Elena Zannoni  <ezannoni@redhat.com>
 
        * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro. 
index 2fbfde53b0e3477d3e227475188c28bae3b6fc0d..76a0250a4a2a734a8c1d69a45e868b564b7ba3f9 100644 (file)
@@ -4267,9 +4267,6 @@ cris_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
   
   set_gdbarch_deprecated_get_saved_register (gdbarch, deprecated_generic_get_saved_register);
   
-  /* No register requires conversion from raw format to virtual format.  */
-  set_gdbarch_register_convertible (gdbarch, generic_register_convertible_not);
-
   set_gdbarch_deprecated_push_return_address (gdbarch, cris_push_return_address);
   set_gdbarch_deprecated_pop_frame (gdbarch, cris_pop_frame);
 
index 3a090eaf03c2563887a177a0956c0a519290267c..666aa25431a7025108ec9f90301d0771f1cb42ba 100644 (file)
@@ -1108,7 +1108,6 @@ frv_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
 
   set_gdbarch_decr_pc_after_break (gdbarch, 0);
   set_gdbarch_function_start_offset (gdbarch, 0);
-  set_gdbarch_register_convertible (gdbarch, generic_register_convertible_not);
 
   set_gdbarch_remote_translate_xfer_address
     (gdbarch, frv_remote_translate_xfer_address);
index adfabf48a2f71d784a8a05ecf337262c2853d44e..b35c30cdaed7edfb5d86ba7198aece24188c9897 100644 (file)
@@ -1391,8 +1391,6 @@ m68hc11_gdbarch_init (struct gdbarch_info info,
   set_gdbarch_deprecated_store_struct_return (gdbarch, m68hc11_store_struct_return);
   set_gdbarch_deprecated_store_return_value (gdbarch, m68hc11_store_return_value);
   set_gdbarch_deprecated_extract_struct_value_address (gdbarch, m68hc11_extract_struct_value_address);
-  set_gdbarch_register_convertible (gdbarch, generic_register_convertible_not);
-
 
   set_gdbarch_deprecated_frame_chain (gdbarch, m68hc11_frame_chain);
   set_gdbarch_deprecated_frame_saved_pc (gdbarch, m68hc11_frame_saved_pc);
index c3fd6dd8be209e63eb2121fc91d6037aad1d2d60..e2db95672bb849e3397eaf9bd674d75b2637c524 100644 (file)
@@ -2104,20 +2104,7 @@ sparc_print_registers (struct gdbarch *gdbarch,
          continue;
        }
 
-      /* FIXME: cagney/2002-08-03: This code shouldn't be necessary.
-         The function frame_register_read() should have returned the
-         pre-cooked register so no conversion is necessary.  */
-      /* Convert raw data to virtual format if necessary.  */
-      if (REGISTER_CONVERTIBLE (i))
-       {
-         REGISTER_CONVERT_TO_VIRTUAL (i, REGISTER_VIRTUAL_TYPE (i),
-                                      raw_buffer, virtual_buffer);
-       }
-      else
-       {
-         memcpy (virtual_buffer, raw_buffer,
-                 REGISTER_VIRTUAL_SIZE (i));
-       }
+      memcpy (virtual_buffer, raw_buffer, REGISTER_VIRTUAL_SIZE (i));
 
       /* If virtual format is floating, print it that way, and in raw
          hex.  */
@@ -3351,8 +3338,6 @@ sparc_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
   set_gdbarch_register_convert_to_raw (gdbarch, sparc_convert_to_raw);
   set_gdbarch_register_convert_to_virtual (gdbarch, 
                                           sparc_convert_to_virtual);
-  set_gdbarch_register_convertible (gdbarch, 
-                                   generic_register_convertible_not);
   set_gdbarch_reg_struct_has_addr (gdbarch, sparc_reg_struct_has_addr);
   set_gdbarch_return_value_on_stack (gdbarch, sparc_return_value_on_stack);
   set_gdbarch_deprecated_saved_pc_after_call (gdbarch, sparc_saved_pc_after_call);