2004-12-05 Randolph Chung <tausq@debian.org>
[deliverable/binutils-gdb.git] / gdb / cris-tdep.c
index 30ba7243f8dabc9e0b71971a2ede961664c49a58..784f39fd4c5ecbf651fde2cccb2bbd2ce0e92662 100644 (file)
@@ -755,7 +755,7 @@ cris_push_dummy_call (struct gdbarch *gdbarch, struct value *function,
       int reg_demand;
       int i;
       
-      len = TYPE_LENGTH (VALUE_TYPE (args[argnum]));
+      len = TYPE_LENGTH (value_type (args[argnum]));
       val = (char *) VALUE_CONTENTS (args[argnum]);
       
       /* How may registers worth of storage do we need for this argument?  */
@@ -1278,9 +1278,6 @@ cris_spec_reg_applicable (struct cris_spec_reg spec_reg)
     case cris_ver_warning:
       /* Indeterminate/obsolete.  */
       return 0;
-    case cris_ver_sim:
-      /* Simulator only.  */
-      return 0;
     case cris_ver_v0_3:
       return (version >= 0 && version <= 3);
     case cris_ver_v3p:
@@ -1376,33 +1373,6 @@ cris_cannot_store_register (int regno)
   return 0;
 }
 
-/* Returns the register offset for the first byte of register regno's space 
-   in the saved register state.  Returns -1 for an invalid or unimplemented
-   register.  */
-
-static int
-cris_register_offset (int regno)
-{
-  int i;
-  int reg_size;
-  int offset = 0;
-  
-  if (regno >= 0 && regno < NUM_REGS)
-    {
-      /* FIXME: The offsets should be cached and calculated only once,
-         when the architecture being debugged has changed.  */
-      for (i = 0; i < regno; i++)
-        offset += cris_register_size (i);
-      
-      return offset;
-    }
-  else
-    {
-      /* Invalid register.  */
-      return -1;
-    }
-}
-
 /* Return the GDB type (defined in gdbtypes.c) for the "standard" data type
    of data in register regno.  */
 
@@ -3678,6 +3648,7 @@ _initialize_cris_tdep (void)
                           set_cris_dwarf2_cfi, NULL,
                           &setlist, &showlist);
 
+  deprecated_add_core_fns (&cris_elf_core_fns);
 }
 
 /* Prints out all target specific values.  */
This page took 0.024687 seconds and 4 git commands to generate.