*** empty log message ***
[binutils-gdb.git] / gdb / libunwind-frame.c
index d580b519a4806dad5fcd26bedb8a3a8106e7a861..4d32adb918a0abb78df7803adb1119344b025148 100644 (file)
@@ -1,6 +1,7 @@
 /* Frame unwinder for frames using the libunwind library.
 
-   Copyright (C) 2003, 2004, 2006, 2007, 2008 Free Software Foundation, Inc.
+   Copyright (C) 2003, 2004, 2006, 2007, 2008, 2009, 2010
+   Free Software Foundation, Inc.
 
    Written by Jeff Johnston, contributed by Red Hat Inc.
 
@@ -100,6 +101,7 @@ libunwind_descr_init (struct gdbarch *gdbarch)
 {
   struct libunwind_descr *descr = GDBARCH_OBSTACK_ZALLOC (gdbarch,
                                                          struct libunwind_descr);
+
   return descr;
 }
 
@@ -200,6 +202,7 @@ void
 libunwind_frame_dealloc_cache (struct frame_info *self, void *this_cache)
 {
   struct libunwind_frame_cache *cache = this_cache;
+
   if (cache->as)
     unw_destroy_addr_space_p (cache->as);
 }
@@ -277,8 +280,6 @@ libunwind_frame_this_id (struct frame_info *this_frame, void **this_cache,
 
   if (cache != NULL)
     (*this_id) = frame_id_build (cache->base, cache->func_addr);
-  else
-    (*this_id) = null_frame_id;
 }
 
 struct value *
@@ -347,7 +348,6 @@ libunwind_frame_prev_register (struct frame_info *this_frame,
               return frame_unwind_got_constant (this_frame, regnum, 0);
             val = frame_unwind_got_constant (this_frame, regnum, intval);
           }
-        set_value_optimized_out (val, 1);
         break;
       }
     }