public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] Handle media instructions in arm software single step.
@ 2015-06-29 16:32 Yao Qi
  0 siblings, 0 replies; only message in thread
From: Yao Qi @ 2015-06-29 16:32 UTC (permalink / raw)
  To: gdb-patches

This patch fixes PR 18605 which is about incorrectly decoding media
instructions in software single step.

gdb:

2015-06-29  Yao Qi  <yao.qi@linaro.org>

	PR tdep/18605
	* arm-tdep.c (arm_get_next_pc_raw): Break for media
	instructions.
---
 gdb/arm-tdep.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c
index c99f2a9..527bd01 100644
--- a/gdb/arm-tdep.c
+++ b/gdb/arm-tdep.c
@@ -4927,6 +4927,13 @@ arm_get_next_pc_raw (struct frame_info *frame, CORE_ADDR pc)
 	case 0x5:		/* data transfer */
 	case 0x6:
 	case 0x7:
+	  if (bits (this_instr, 25, 27) == 0x3 && bit (this_instr, 4) == 1)
+	    {
+	      /* Media instructions and architecturally undefined
+		 instructions.  */
+	      break;
+	    }
+
 	  if (bit (this_instr, 20))
 	    {
 	      /* load */
-- 
1.9.1

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-06-29 16:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-29 16:32 [PATCH] Handle media instructions in arm software single step Yao Qi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).