Use RAII to save and restore scalars
[deliverable/binutils-gdb.git] / gdb / sparc64fbsd-tdep.c
index c9f9041936b6a9c9d4f07293788154d899c7e463..27ca52e66a21485f9bb23a4b8438520fefe9e3f5 100644 (file)
@@ -1,6 +1,6 @@
 /* Target-dependent code for FreeBSD/sparc64.
 
-   Copyright (C) 2003-2015 Free Software Foundation, Inc.
+   Copyright (C) 2003-2016 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -97,7 +97,7 @@ sparc64fbsd_sigtramp_frame_cache (struct frame_info *this_frame,
   int regnum;
 
   if (*this_cache)
-    return *this_cache;
+    return (struct sparc_frame_cache *) *this_cache;
 
   cache = sparc_frame_cache (this_frame, this_cache);
   gdb_assert (cache == *this_cache);
This page took 0.024082 seconds and 4 git commands to generate.