|
|
8f6b9e |
commit 8aabe2e254e6a0419db9c6397c4068c69bfd95b0
|
|
|
8f6b9e |
Author: Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
|
|
|
8f6b9e |
Date: Wed Sep 21 14:47:43 2016 -0300
|
|
|
8f6b9e |
|
|
|
8f6b9e |
ppc: Fix return of instruction handlers in ppc_process_record_op63
|
|
|
8f6b9e |
|
|
|
8f6b9e |
some instruction handlers in ppc_process_record_op63() seem to be missing
|
|
|
8f6b9e |
return or incorrectly using break. This patch aims to fix that.
|
|
|
8f6b9e |
|
|
|
8f6b9e |
gdb/ChangeLog:
|
|
|
8f6b9e |
2016-09-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
|
|
|
8f6b9e |
|
|
|
8f6b9e |
* rs6000-tdep.c (ppc_process_record_op63): Fix return of instruction
|
|
|
8f6b9e |
handlers.
|
|
|
8f6b9e |
|
|
|
8f6b9e |
### a/gdb/ChangeLog
|
|
|
8f6b9e |
### b/gdb/ChangeLog
|
|
|
8f6b9e |
## -1,3 +1,8 @@
|
|
|
8f6b9e |
+2016-09-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
|
|
|
8f6b9e |
+
|
|
|
8f6b9e |
+ * rs6000-tdep.c (ppc_process_record_op63): Fix return of instruction
|
|
|
8f6b9e |
+ handlers.
|
|
|
8f6b9e |
+
|
|
|
8f6b9e |
2016-09-21 Tom Tromey <tom@tromey.com>
|
|
|
8f6b9e |
|
|
|
8f6b9e |
PR gdb/20604:
|
|
|
8f6b9e |
--- a/gdb/rs6000-tdep.c
|
|
|
8f6b9e |
+++ b/gdb/rs6000-tdep.c
|
|
|
8f6b9e |
@@ -5399,6 +5399,7 @@ ppc_process_record_op63 (struct gdbarch *gdbarch, struct regcache *regcache,
|
|
|
8f6b9e |
tdep->ppc_fp0_regnum + PPC_FRT (insn));
|
|
|
8f6b9e |
if (PPC_RC (insn))
|
|
|
8f6b9e |
record_full_arch_list_add_reg (regcache, tdep->ppc_cr_regnum);
|
|
|
8f6b9e |
+ return 0;
|
|
|
8f6b9e |
}
|
|
|
8f6b9e |
|
|
|
8f6b9e |
switch (ext & 0xff)
|
|
|
8f6b9e |
@@ -5462,7 +5463,7 @@ ppc_process_record_op63 (struct gdbarch *gdbarch, struct regcache *regcache,
|
|
|
8f6b9e |
if (PPC_RC (insn))
|
|
|
8f6b9e |
record_full_arch_list_add_reg (regcache, tdep->ppc_cr_regnum);
|
|
|
8f6b9e |
record_full_arch_list_add_reg (regcache, tdep->ppc_fpscr_regnum);
|
|
|
8f6b9e |
- break;
|
|
|
8f6b9e |
+ return 0;
|
|
|
8f6b9e |
|
|
|
8f6b9e |
case 354: /* DFP Extract Biased Exponent Quad */
|
|
|
8f6b9e |
record_full_arch_list_add_reg (regcache,
|
|
|
8f6b9e |
@@ -5541,7 +5542,7 @@ ppc_process_record_op63 (struct gdbarch *gdbarch, struct regcache *regcache,
|
|
|
8f6b9e |
if (PPC_RC (insn))
|
|
|
8f6b9e |
record_full_arch_list_add_reg (regcache, tdep->ppc_cr_regnum);
|
|
|
8f6b9e |
record_full_arch_list_add_reg (regcache, tdep->ppc_fpscr_regnum);
|
|
|
8f6b9e |
- break;
|
|
|
8f6b9e |
+ return 0;
|
|
|
8f6b9e |
|
|
|
8f6b9e |
case 0: /* Floating Compare Unordered */
|
|
|
8f6b9e |
case 32: /* Floating Compare Ordered */
|