Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [RFA] i386-tdep.c: fix a bug in prec i386 code
@ 2010-03-04  2:37 Hui Zhu
  2010-03-04  7:39 ` Joel Brobecker
  0 siblings, 1 reply; 3+ messages in thread
From: Hui Zhu @ 2010-03-04  2:37 UTC (permalink / raw)
  To: gdb-patches ml; +Cc: Mark Kettenis

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))


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-03-04  7:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-04  2:37 [RFA] i386-tdep.c: fix a bug in prec i386 code Hui Zhu
2010-03-04  7:39 ` Joel Brobecker
2010-03-04  7:58   ` Hui Zhu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox