From: Hui Zhu <teawater@gmail.com>
To: gdb-patches ml <gdb-patches@sourceware.org>
Cc: Mark Kettenis <mark.kettenis@xs4all.nl>
Subject: [RFA] i386-tdep.c: fix a bug in prec i386 code
Date: Thu, 04 Mar 2010 02:37:00 -0000 [thread overview]
Message-ID: <daef60381003031837r297e9bb2s70889676afb3a51a@mail.gmail.com> (raw)
Hi,
I found that decode code for sidt in i386_process_record has a bug.
I made a patch to fix it.
Please help me review it.
Thanks,
Hui
2010-03-04 Hui Zhu <teawater@gmail.com>
* i386-tdep.c (i386_process_record): Change "addr" to "tmpu64".
---
i386-tdep.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/i386-tdep.c
+++ b/i386-tdep.c
@@ -5388,7 +5388,7 @@ i386_process_record (struct gdbarch *gdb
return -1;
if (record_arch_list_add_mem (tmpu64, 2))
return -1;
- addr += 2;
+ tmpu64 += 2;
if (ir.regmap[X86_RECORD_R8_REGNUM])
{
if (record_arch_list_add_mem (tmpu64, 8))
next reply other threads:[~2010-03-04 2:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-04 2:37 Hui Zhu [this message]
2010-03-04 7:39 ` Joel Brobecker
2010-03-04 7:58 ` Hui Zhu
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=daef60381003031837r297e9bb2s70889676afb3a51a@mail.gmail.com \
--to=teawater@gmail.com \
--cc=gdb-patches@sourceware.org \
--cc=mark.kettenis@xs4all.nl \
/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