[OBV] gdb/rs6000: Fix maybe-uninitialized warning.
authorMarcin Kościelnicki <koriakin@0x04.net>
Wed, 24 Feb 2016 21:00:59 +0000 (22:00 +0100)
committerMarcin Kościelnicki <koriakin@0x04.net>
Wed, 24 Feb 2016 21:02:53 +0000 (22:02 +0100)
Introduced by 657f9cde9d531c9929bef9e02a8064101d568f50.

gdb/ChangeLog:

* rs6000-tdep.c (rs6000_frame_cache): Initialize frame and pc to 0
to avoid spurious warnings.

gdb/ChangeLog
gdb/rs6000-tdep.c

index ea9f3f4..95cabdb 100644 (file)
@@ -1,3 +1,8 @@
+2016-02-24  Marcin Kościelnicki  <koriakin@0x04.net>
+
+       * rs6000-tdep.c (rs6000_frame_cache): Initialize frame and pc to 0
+       to avoid spurious warnings.
+
 2016-02-24  Gary Benson  <gbenson@redhat.com>
 
        * exec.c (exec_file_locate_attach): Do not attempt to
index a56b8b6..d0c56d7 100644 (file)
@@ -3209,7 +3209,7 @@ rs6000_frame_cache (struct frame_info *this_frame, void **this_cache)
   enum bfd_endian byte_order = gdbarch_byte_order (gdbarch);
   struct rs6000_framedata fdata;
   int wordsize = tdep->wordsize;
-  CORE_ADDR func, pc;
+  CORE_ADDR func = 0, pc = 0;
 
   if ((*this_cache) != NULL)
     return (struct rs6000_frame_cache *) (*this_cache);