This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]