This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[RFA] i386-tdep.c: fix a bug in prec i386 code
- From: Hui Zhu <teawater at gmail dot com>
- To: gdb-patches ml <gdb-patches at sourceware dot org>
- Cc: Mark Kettenis <mark dot kettenis at xs4all dot nl>
- Date: Thu, 4 Mar 2010 10:37:24 +0800
- Subject: [RFA] i386-tdep.c: fix a bug in prec i386 code
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))