2010-03-08 Hui Zhu <teawater@gmail.com>
authorHui Zhu <teawater@gmail.com>
Mon, 8 Mar 2010 12:57:11 +0000 (12:57 +0000)
committerHui Zhu <teawater@gmail.com>
Mon, 8 Mar 2010 12:57:11 +0000 (12:57 +0000)
* i386-tdep.c (i386_process_record): Initialize regnum.

gdb/ChangeLog
gdb/i386-tdep.c

index 71a46794e03eb4a78e162ba27e97bf5d55b4b31e..95d0bff2b2bb87e1a921d614895cd3200b620617 100644 (file)
@@ -1,3 +1,7 @@
+2010-03-08  Hui Zhu  <teawater@gmail.com>
+
+       * i386-tdep.c (i386_process_record): Initialize regnum.
+
 2010-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
        * symfile.c (addr_info_make_relative): New variable sect_name, use it.
index bcda17ca38f1d1fb9619ef3e5d55c712ab0c4db0..115bcb9dbff041492ccee3b112f48dab28dbcca0 100644 (file)
@@ -3310,7 +3310,7 @@ i386_process_record (struct gdbarch *gdbarch, struct regcache *regcache,
                     CORE_ADDR input_addr)
 {
   int prefixes = 0;
-  int regnum;
+  int regnum = 0;
   uint32_t opcode;
   uint8_t  opcode8;
   ULONGEST addr;