• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

GNU Binutils with patches for OS216


Commit MetaInfo

Revision8aabe2e254e6a0419db9c6397c4068c69bfd95b0 (tree)
Time2016-09-22 02:47:43
AuthorEdjunior Barbosa Machado <emachado@linu...>
CommiterEdjunior Barbosa Machado

Log Message

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.

Change Summary

Incremental Difference

--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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+
16 2016-09-21 Tom Tromey <tom@tromey.com>
27
38 PR gdb/20604:
--- a/gdb/rs6000-tdep.c
+++ b/gdb/rs6000-tdep.c
@@ -5399,6 +5399,7 @@ ppc_process_record_op63 (struct gdbarch *gdbarch, struct regcache *regcache,
53995399 tdep->ppc_fp0_regnum + PPC_FRT (insn));
54005400 if (PPC_RC (insn))
54015401 record_full_arch_list_add_reg (regcache, tdep->ppc_cr_regnum);
5402+ return 0;
54025403 }
54035404
54045405 switch (ext & 0xff)
@@ -5462,7 +5463,7 @@ ppc_process_record_op63 (struct gdbarch *gdbarch, struct regcache *regcache,
54625463 if (PPC_RC (insn))
54635464 record_full_arch_list_add_reg (regcache, tdep->ppc_cr_regnum);
54645465 record_full_arch_list_add_reg (regcache, tdep->ppc_fpscr_regnum);
5465- break;
5466+ return 0;
54665467
54675468 case 354: /* DFP Extract Biased Exponent Quad */
54685469 record_full_arch_list_add_reg (regcache,
@@ -5541,7 +5542,7 @@ ppc_process_record_op63 (struct gdbarch *gdbarch, struct regcache *regcache,
55415542 if (PPC_RC (insn))
55425543 record_full_arch_list_add_reg (regcache, tdep->ppc_cr_regnum);
55435544 record_full_arch_list_add_reg (regcache, tdep->ppc_fpscr_regnum);
5544- break;
5545+ return 0;
55455546
55465547 case 0: /* Floating Compare Unordered */
55475548 case 32: /* Floating Compare Ordered */