Add some more casts (2/2)
[deliverable/binutils-gdb.git] / gdb / s390-linux-tdep.c
index 8d277ac3f525b35af081bc0cc6f0a5f843daf17d..fcf93d701bc9eeb5ffc5d2257e72fdb2b26a5576 100644 (file)
@@ -1168,7 +1168,7 @@ static void
 s390_check_for_saved (void *data_untyped, pv_t addr,
                      CORE_ADDR size, pv_t value)
 {
-  struct s390_prologue_data *data = data_untyped;
+  struct s390_prologue_data *data = (struct s390_prologue_data *) data_untyped;
   int i, offset;
 
   if (!pv_is_register (addr, S390_SP_REGNUM))
@@ -2081,7 +2081,7 @@ s390_frame_unwind_cache (struct frame_info *this_frame,
   struct s390_unwind_cache *info;
 
   if (*this_prologue_cache)
-    return *this_prologue_cache;
+    return (struct s390_unwind_cache *) *this_prologue_cache;
 
   info = FRAME_OBSTACK_ZALLOC (struct s390_unwind_cache);
   *this_prologue_cache = info;
@@ -2162,7 +2162,7 @@ s390_stub_frame_unwind_cache (struct frame_info *this_frame,
   ULONGEST reg;
 
   if (*this_prologue_cache)
-    return *this_prologue_cache;
+    return (struct s390_stub_unwind_cache *) *this_prologue_cache;
 
   info = FRAME_OBSTACK_ZALLOC (struct s390_stub_unwind_cache);
   *this_prologue_cache = info;
@@ -2246,7 +2246,7 @@ s390_sigtramp_frame_unwind_cache (struct frame_info *this_frame,
   int i;
 
   if (*this_prologue_cache)
-    return *this_prologue_cache;
+    return (struct s390_sigtramp_unwind_cache *) *this_prologue_cache;
 
   info = FRAME_OBSTACK_ZALLOC (struct s390_sigtramp_unwind_cache);
   *this_prologue_cache = info;
This page took 0.024968 seconds and 4 git commands to generate.