From 580879fcfcc81684d0b105afe8f27975659fa99e Mon Sep 17 00:00:00 2001 From: Hui Zhu Date: Mon, 8 Mar 2010 12:57:11 +0000 Subject: [PATCH] 2010-03-08 Hui Zhu * i386-tdep.c (i386_process_record): Initialize regnum. --- gdb/ChangeLog | 4 ++++ gdb/i386-tdep.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 71a46794e03..95d0bff2b2b 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2010-03-08 Hui Zhu + + * i386-tdep.c (i386_process_record): Initialize regnum. + 2010-03-08 Jan Kratochvil * 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 bcda17ca38f..115bcb9dbff 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; -- 2.30.2