ppc: Fix return of instruction handlers in ppc_process_record_op63
some instruction handlers in ppc_process_record_op63() seem to be missing return or incorrectly using break. This patch aims to fix that. gdb/ChangeLog: 2016-09-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com> * rs6000-tdep.c (ppc_process_record_op63): Fix return of instruction handlers.
This commit is contained in:
parent
36cf1806a8
commit
8aabe2e254
2 changed files with 8 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2016-09-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
|
||||||
|
|
||||||
|
* rs6000-tdep.c (ppc_process_record_op63): Fix return of instruction
|
||||||
|
handlers.
|
||||||
|
|
||||||
2016-09-21 Tom Tromey <tom@tromey.com>
|
2016-09-21 Tom Tromey <tom@tromey.com>
|
||||||
|
|
||||||
PR gdb/20604:
|
PR gdb/20604:
|
||||||
|
|
|
@ -5399,6 +5399,7 @@ ppc_process_record_op63 (struct gdbarch *gdbarch, struct regcache *regcache,
|
||||||
tdep->ppc_fp0_regnum + PPC_FRT (insn));
|
tdep->ppc_fp0_regnum + PPC_FRT (insn));
|
||||||
if (PPC_RC (insn))
|
if (PPC_RC (insn))
|
||||||
record_full_arch_list_add_reg (regcache, tdep->ppc_cr_regnum);
|
record_full_arch_list_add_reg (regcache, tdep->ppc_cr_regnum);
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (ext & 0xff)
|
switch (ext & 0xff)
|
||||||
|
@ -5462,7 +5463,7 @@ ppc_process_record_op63 (struct gdbarch *gdbarch, struct regcache *regcache,
|
||||||
if (PPC_RC (insn))
|
if (PPC_RC (insn))
|
||||||
record_full_arch_list_add_reg (regcache, tdep->ppc_cr_regnum);
|
record_full_arch_list_add_reg (regcache, tdep->ppc_cr_regnum);
|
||||||
record_full_arch_list_add_reg (regcache, tdep->ppc_fpscr_regnum);
|
record_full_arch_list_add_reg (regcache, tdep->ppc_fpscr_regnum);
|
||||||
break;
|
return 0;
|
||||||
|
|
||||||
case 354: /* DFP Extract Biased Exponent Quad */
|
case 354: /* DFP Extract Biased Exponent Quad */
|
||||||
record_full_arch_list_add_reg (regcache,
|
record_full_arch_list_add_reg (regcache,
|
||||||
|
@ -5541,7 +5542,7 @@ ppc_process_record_op63 (struct gdbarch *gdbarch, struct regcache *regcache,
|
||||||
if (PPC_RC (insn))
|
if (PPC_RC (insn))
|
||||||
record_full_arch_list_add_reg (regcache, tdep->ppc_cr_regnum);
|
record_full_arch_list_add_reg (regcache, tdep->ppc_cr_regnum);
|
||||||
record_full_arch_list_add_reg (regcache, tdep->ppc_fpscr_regnum);
|
record_full_arch_list_add_reg (regcache, tdep->ppc_fpscr_regnum);
|
||||||
break;
|
return 0;
|
||||||
|
|
||||||
case 0: /* Floating Compare Unordered */
|
case 0: /* Floating Compare Unordered */
|
||||||
case 32: /* Floating Compare Ordered */
|
case 32: /* Floating Compare Ordered */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue