This patch changes two if statements to else if statements in
ppc-linux-nat.c:fetch_register for clarity.
gdb/ChangeLog:
2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
* ppc-linux-nat.c (fetch_register): Change if statement to else
if.
(store_register): Likewise.
2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
+ * ppc-linux-nat.c (fetch_register): Change if statement to else
+ if.
+ (store_register): Likewise.
+
+2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
+
* rs6000-tdep.c: Remove reggroups.h include.
(rs6000_pseudo_register_reggroup_p): Remove.
(rs6000_gdbarch_init): Remove call to
* rs6000-tdep.c: Remove reggroups.h include.
(rs6000_pseudo_register_reggroup_p): Remove.
(rs6000_gdbarch_init): Remove call to
AltiVec registers, fall through and return zeroes, because
regaddr will be -1 in this case. */
}
AltiVec registers, fall through and return zeroes, because
regaddr will be -1 in this case. */
}
- if (vsx_register_p (gdbarch, regno))
+ else if (vsx_register_p (gdbarch, regno))
{
if (have_ptrace_getsetvsxregs)
{
{
if (have_ptrace_getsetvsxregs)
{
store_altivec_registers (regcache, tid, regno);
return;
}
store_altivec_registers (regcache, tid, regno);
return;
}
- if (vsx_register_p (gdbarch, regno))
+ else if (vsx_register_p (gdbarch, regno))
{
store_vsx_registers (regcache, tid, regno);
return;
{
store_vsx_registers (regcache, tid, regno);
return;