* i386-tdep.c (i386_process_record): Change bzero to memset.
authorHui Zhu <teawater@gmail.com>
Wed, 6 May 2009 11:16:40 +0000 (11:16 +0000)
committerHui Zhu <teawater@gmail.com>
Wed, 6 May 2009 11:16:40 +0000 (11:16 +0000)
gdb/ChangeLog
gdb/i386-tdep.c

index 3b8353e0fd2a7b561aebb238d8c81a61c732c34f..8ac2bb2e494209c88961a9bae3f153025fabf809 100644 (file)
@@ -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>
 
index c2515fe84cb62bd53876d8368ef2248a73a99496..718a01c1b95ae339dface3d760fc564fe80c6a54 100644 (file)
@@ -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;