]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
(more) Merge with trunk.
authorAndrew Cagney <cagney@redhat.com>
Fri, 21 Jun 2002 19:35:25 +0000 (19:35 +0000)
committerAndrew Cagney <cagney@redhat.com>
Fri, 21 Jun 2002 19:35:25 +0000 (19:35 +0000)
gdb/arch-utils.c
gdb/frame.h
gdb/infrun.c
gdb/values.c

index d60eeb36ed79553e49af69327e147249365fd61a..b79a02a76abb40b3546b667ee3d6d38ea34867b4 100644 (file)
@@ -117,22 +117,6 @@ legacy_register_sim_regno (int regnum)
     return LEGACY_SIM_REGNO_IGNORE;
 }
 
-int
-legacy_register_sim_regno (int regnum)
-{
-  /* Only makes sense to supply raw registers.  */
-  gdb_assert (regnum >= 0 && regnum < NUM_REGS);
-  /* NOTE: cagney/2002-05-13: The old code did it this way and it is
-     suspected that some GDB/SIM combinations may rely on this
-     behavour.  The default should be one2one_register_sim_regno
-     (below).  */
-  if (REGISTER_NAME (regnum) != NULL
-      && REGISTER_NAME (regnum)[0] != '\0')
-    return regnum;
-  else
-    return LEGACY_SIM_REGNO_IGNORE;
-}
-
 int
 generic_frameless_function_invocation_not (struct frame_info *fi)
 {
index a0a965edf2464c87a9d105c3f3eb6a0a7f6bd824..27bd7ff8943b14824d8ffce0e97a9bba0257469e 100644 (file)
@@ -140,11 +140,6 @@ struct frame_info
     frame_register_unwind_ftype *register_unwind;
     void *register_unwind_cache;
 
-    /* See description above.  Return the register value for the
-       previous frame.  */
-    frame_register_unwind_ftype *register_unwind;
-    void *register_unwind_cache;
-
     /* Pointers to the next (down, inner) and previous (up, outer)
        frame_info's in the frame cache.  */
     struct frame_info *next; /* down, inner */
index ec6c7d98da5d2c364210c1361be6b8ba93bfcf7a..c605126f176490c03883b3758ae4f4b9019cd0a5 100644 (file)
@@ -3916,9 +3916,6 @@ struct inferior_status
   /* A frame unique identifier.  */
   struct frame_id selected_frame_id;
 
-  /* A frame unique identifier.  */
-  struct frame_id selected_frame_id;
-
   int breakpoint_proceeded;
   int restore_stack_info;
   int proceed_to_finish;
index a72b7fa3ccdaf893d581b105c2c4785cd2895e72..b5b3bb96e38e29f5f75e0dfe5d9039c375c51e0c 100644 (file)
@@ -1231,7 +1231,6 @@ value_being_returned (struct type *valtype, struct regcache *retbuf,
   struct value *val;
   CORE_ADDR addr;
 
-#if 0
   /* If this is not defined, just use EXTRACT_RETURN_VALUE instead.  */
   if (EXTRACT_STRUCT_VALUE_ADDRESS_P ())
     if (struct_return)
@@ -1241,13 +1240,13 @@ value_being_returned (struct type *valtype, struct regcache *retbuf,
          error ("Function return value unknown.");
        return value_at (valtype, addr, NULL);
       }
-#endif
 
   /* If this is not defined, just use EXTRACT_RETURN_VALUE instead.  */
   if (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS_P ())
     if (struct_return)
       {
-       addr = DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS (retbuf);
+       void *regs = deprecated_grub_regcache_for_registers (retbuf);
+       addr = DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS (regs);
        if (!addr)
          error ("Function return value unknown.");
        return value_at (valtype, addr, NULL);
@@ -1266,7 +1265,6 @@ value_being_returned (struct type *valtype, struct regcache *retbuf,
 
   val = allocate_value (valtype);
   CHECK_TYPEDEF (valtype);
-#define EXTRACT_RETURN_VALUE DEPRECATED_EXTRACT_RETURN_VALUE
   EXTRACT_RETURN_VALUE (valtype, retbuf, VALUE_CONTENTS_RAW (val));
 
   return val;