aboutsummaryrefslogtreecommitdiff
path: root/gdb/rs6000-tdep.c
diff options
context:
space:
mode:
authorMarcin Koƛcielnicki <koriakin@0x04.net>2016-02-24 22:00:59 +0100
committerMarcin Koƛcielnicki <koriakin@0x04.net>2016-02-24 22:02:53 +0100
commit338435ef105ff51e967571ad073830ec1eb5a4ab (patch)
treeb4ec18e1bda9a2e4fe6fb057c4f86135bd3c4b4a /gdb/rs6000-tdep.c
parent861ca91fc65b9a53b807f6d5c5253fc33f92e7d8 (diff)
downloadgdb-338435ef105ff51e967571ad073830ec1eb5a4ab.zip
gdb-338435ef105ff51e967571ad073830ec1eb5a4ab.tar.gz
gdb-338435ef105ff51e967571ad073830ec1eb5a4ab.tar.bz2
[OBV] gdb/rs6000: Fix maybe-uninitialized warning.
Introduced by 657f9cde9d531c9929bef9e02a8064101d568f50. gdb/ChangeLog: * rs6000-tdep.c (rs6000_frame_cache): Initialize frame and pc to 0 to avoid spurious warnings.
Diffstat (limited to 'gdb/rs6000-tdep.c')
-rw-r--r--gdb/rs6000-tdep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/rs6000-tdep.c b/gdb/rs6000-tdep.c
index a56b8b6..d0c56d7 100644
--- a/gdb/rs6000-tdep.c
+++ b/gdb/rs6000-tdep.c
@@ -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);