aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorHui Zhu <teawater@gmail.com>2010-03-08 12:57:11 +0000
committerHui Zhu <teawater@gmail.com>2010-03-08 12:57:11 +0000
commit580879fcfcc81684d0b105afe8f27975659fa99e (patch)
tree20f3534636822b14b58e985a3d70e02d5741e44c /gdb
parentb0fcb67f7dba1fb2a54a1b4692efd84dd770d2ce (diff)
downloadgdb-580879fcfcc81684d0b105afe8f27975659fa99e.zip
gdb-580879fcfcc81684d0b105afe8f27975659fa99e.tar.gz
gdb-580879fcfcc81684d0b105afe8f27975659fa99e.tar.bz2
2010-03-08 Hui Zhu <teawater@gmail.com>
* i386-tdep.c (i386_process_record): Initialize regnum.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/i386-tdep.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 71a4679..95d0bff 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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.
diff --git a/gdb/i386-tdep.c b/gdb/i386-tdep.c
index bcda17c..115bcb9 100644
--- a/gdb/i386-tdep.c
+++ b/gdb/i386-tdep.c
@@ -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;