forked from Imagelibrary/binutils-gdb
[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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user