aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorHui Zhu <teawater@gmail.com>2009-05-06 11:16:40 +0000
committerHui Zhu <teawater@gmail.com>2009-05-06 11:16:40 +0000
commit8408d2743c9758b17020f951617dda664c051db0 (patch)
tree3084455a03eb5e463a306ccb2f8457b1cb7763a3 /gdb
parente7a8dbfb0668470c813d8b31f92636a16ad65050 (diff)
downloadgdb-8408d2743c9758b17020f951617dda664c051db0.zip
gdb-8408d2743c9758b17020f951617dda664c051db0.tar.gz
gdb-8408d2743c9758b17020f951617dda664c051db0.tar.bz2
* i386-tdep.c (i386_process_record): Change bzero to memset.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/i386-tdep.c2
2 files changed, 6 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 3b8353e..8ac2bb2 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,6 +1,10 @@
2008-05-06 Hui Zhu <teawater@gmail.com>
- * NEWS: Add item for process record and replay.
+ * i386-tdep.c (i386_process_record): Change bzero to memset.
+
+2008-05-06 Hui Zhu <teawater@gmail.com>
+
+ * NEWS: Add item for process record and replay.
2009-05-05 Maxim Grigoriev <maxim2405@gmail.com>
diff --git a/gdb/i386-tdep.c b/gdb/i386-tdep.c
index c2515fe..718a01c 100644
--- a/gdb/i386-tdep.c
+++ b/gdb/i386-tdep.c
@@ -2993,7 +2993,7 @@ i386_process_record (struct gdbarch *gdbarch, struct regcache *regcache,
uint32_t opcode;
struct i386_record_s ir;
- bzero (&ir, sizeof (struct i386_record_s));
+ memset (&ir, 0, sizeof (struct i386_record_s));
ir.regcache = regcache;
ir.addr = addr;
ir.aflag = 1;