[OBV] gdb/rs6000: Fix maybe-uninitialized warning.
Introduced by 657f9cde9d
.
gdb/ChangeLog:
* rs6000-tdep.c (rs6000_frame_cache): Initialize frame and pc to 0
to avoid spurious warnings.
This commit is contained in:
parent
861ca91fc6
commit
338435ef10
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user