From: Omair Javaid <omair.javaid@linaro.org>
To: gdb-patches@sourceware.org
Cc: patches@linaro.org
Subject: [PATCH v2 3/7] Fix for bug in pop instruction decoding
Date: Fri, 03 Jan 2014 19:16:00 -0000 [thread overview]
Message-ID: <c7c076416b3d2c12eb6746e8555e5c57827e7611.1388709773.git.omair.javaid@linaro.org> (raw)
In-Reply-To: <cover.1388709773.git.omair.javaid@linaro.org>
In-Reply-To: <cover.1388709773.git.omair.javaid@linaro.org>
This patch fixes thumb push instruction recording by replacing base register
from pc to sp.
gdb:
2014-01-03 Omair Javaid <omair.javaid@linaro.org>
* arm-tdep.c (thumb_record_misc): Update to use sp as base register for
push instruction recording.
---
gdb/arm-tdep.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c
index 24bacf8..f7a214f 100644
--- a/gdb/arm-tdep.c
+++ b/gdb/arm-tdep.c
@@ -12212,7 +12212,7 @@ thumb_record_misc (insn_decode_record *thumb_insn_r)
{
/* PUSH. */
register_bits = bits (thumb_insn_r->arm_insn, 0, 7);
- regcache_raw_read_unsigned (reg_cache, ARM_PC_REGNUM, &u_regval);
+ regcache_raw_read_unsigned (reg_cache, ARM_SP_REGNUM, &u_regval);
while (register_bits)
{
if (register_bits & 0x00000001)
--
1.7.9.5
next prev parent reply other threads:[~2014-01-03 19:16 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-03 19:16 [PATCH v2 0/7] ARM record/replay and reverse debugging improvements Omair Javaid
[not found] ` <y@[87.69.4.28]>
[not found] ` <1385042577-5600-2-git-send-email-y@[87.69.4.28]>
2013-11-21 17:42 ` [PATCH 1/1] Documentation for MPX Eli Zaretskii
2014-01-03 19:16 ` [PATCH v2 5/7] Adds support for thumb32 instructions recording Omair Javaid
2014-01-06 19:52 ` Pedro Alves
2014-01-09 10:34 ` Omair Javaid
2014-01-09 11:23 ` Pedro Alves
2014-01-09 11:34 ` Omair Javaid
2014-01-15 17:27 ` Will Newton
2014-01-15 17:49 ` Tom Tromey
2014-01-03 19:16 ` [PATCH v2 7/7] Adds a NEWS entry for arm record/replay improvements Omair Javaid
2014-01-03 20:25 ` Eli Zaretskii
2014-01-09 11:25 ` Pedro Alves
2014-01-03 19:16 ` Omair Javaid [this message]
2014-01-06 19:51 ` [PATCH v2 3/7] Fix for bug in pop instruction decoding Pedro Alves
2014-01-03 19:16 ` [PATCH v2 1/7] Fix for memory record corruption due to 64bit addresses Omair Javaid
2014-01-06 19:50 ` Pedro Alves
2014-01-09 10:35 ` Omair Javaid
2014-01-09 11:23 ` Pedro Alves
2014-01-03 19:16 ` [PATCH v2 4/7] Adds support for recording system call instructions Omair Javaid
2014-01-06 19:52 ` Pedro Alves
2014-01-09 10:49 ` Omair Javaid
2014-01-09 17:14 ` Pedro Alves
2014-01-03 19:16 ` [PATCH v2 6/7] Updates configure.tgt and enables gdb.reverse testsuite Omair Javaid
2014-01-05 14:29 ` Yao Qi
2014-01-09 11:00 ` Omair Javaid
2014-01-09 11:25 ` Pedro Alves
2014-01-03 19:16 ` [PATCH v2 2/7] Fix for bugs in push and ldm instructions decoding Omair Javaid
2014-01-06 19:50 ` Pedro Alves
2014-01-06 19:54 ` [PATCH v2 0/7] ARM record/replay and reverse debugging improvements Pedro Alves
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c7c076416b3d2c12eb6746e8555e5c57827e7611.1388709773.git.omair.javaid@linaro.org \
--to=omair.javaid@linaro.org \
--cc=gdb-patches@sourceware.org \
--cc=patches@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox