GNU Binutils with patches for OS216
Revision | 8aabe2e254e6a0419db9c6397c4068c69bfd95b0 (tree) |
---|---|
Time | 2016-09-22 02:47:43 |
Author | Edjunior Barbosa Machado <emachado@linu...> |
Commiter | Edjunior Barbosa Machado |
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.
@@ -1,3 +1,8 @@ | ||
1 | +2016-09-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com> | |
2 | + | |
3 | + * rs6000-tdep.c (ppc_process_record_op63): Fix return of instruction | |
4 | + handlers. | |
5 | + | |
1 | 6 | 2016-09-21 Tom Tromey <tom@tromey.com> |
2 | 7 | |
3 | 8 | PR gdb/20604: |
@@ -5399,6 +5399,7 @@ ppc_process_record_op63 (struct gdbarch *gdbarch, struct regcache *regcache, | ||
5399 | 5399 | tdep->ppc_fp0_regnum + PPC_FRT (insn)); |
5400 | 5400 | if (PPC_RC (insn)) |
5401 | 5401 | record_full_arch_list_add_reg (regcache, tdep->ppc_cr_regnum); |
5402 | + return 0; | |
5402 | 5403 | } |
5403 | 5404 | |
5404 | 5405 | switch (ext & 0xff) |
@@ -5462,7 +5463,7 @@ ppc_process_record_op63 (struct gdbarch *gdbarch, struct regcache *regcache, | ||
5462 | 5463 | if (PPC_RC (insn)) |
5463 | 5464 | record_full_arch_list_add_reg (regcache, tdep->ppc_cr_regnum); |
5464 | 5465 | record_full_arch_list_add_reg (regcache, tdep->ppc_fpscr_regnum); |
5465 | - break; | |
5466 | + return 0; | |
5466 | 5467 | |
5467 | 5468 | case 354: /* DFP Extract Biased Exponent Quad */ |
5468 | 5469 | record_full_arch_list_add_reg (regcache, |
@@ -5541,7 +5542,7 @@ ppc_process_record_op63 (struct gdbarch *gdbarch, struct regcache *regcache, | ||
5541 | 5542 | if (PPC_RC (insn)) |
5542 | 5543 | record_full_arch_list_add_reg (regcache, tdep->ppc_cr_regnum); |
5543 | 5544 | record_full_arch_list_add_reg (regcache, tdep->ppc_fpscr_regnum); |
5544 | - break; | |
5545 | + return 0; | |
5545 | 5546 | |
5546 | 5547 | case 0: /* Floating Compare Unordered */ |
5547 | 5548 | case 32: /* Floating Compare Ordered */ |