Initialize 'ra' to zero to avoid uninitialized use.
authorJohn Baldwin <jhb@FreeBSD.org>
Sat, 11 Jun 2016 14:26:09 +0000 (07:26 -0700)
committerJohn Baldwin <jhb@FreeBSD.org>
Tue, 14 Jun 2016 18:47:11 +0000 (11:47 -0700)
commitbec734b212d68d96560e309f49a584d98b98fbdc
tree59fe77f25d44120c288ae81a936e2afbb7381b25
parent99a54ef6f705eedb20f8f4baf3fdd47cc5ca8a92
Initialize 'ra' to zero to avoid uninitialized use.

If the instruction in this case does not include an RA field, then 'ra'
is used uninitialized.  Use the same idiom used elsewhere in this file of
initializing ra to zero before check for an RA field.

gdb/ChangeLog:

* rs6000-tdep.c (ppc_process_record_op31): Initialize ra.
gdb/ChangeLog
gdb/rs6000-tdep.c