From 8408d2743c9758b17020f951617dda664c051db0 Mon Sep 17 00:00:00 2001 From: Hui Zhu Date: Wed, 6 May 2009 11:16:40 +0000 Subject: [PATCH] * i386-tdep.c (i386_process_record): Change bzero to memset. --- gdb/ChangeLog | 6 +++++- gdb/i386-tdep.c | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 3b8353e0fd2..8ac2bb2e494 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,6 +1,10 @@ 2008-05-06 Hui Zhu - * NEWS: Add item for process record and replay. + * i386-tdep.c (i386_process_record): Change bzero to memset. + +2008-05-06 Hui Zhu + + * NEWS: Add item for process record and replay. 2009-05-05 Maxim Grigoriev diff --git a/gdb/i386-tdep.c b/gdb/i386-tdep.c index c2515fe84cb..718a01c1b95 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; -- 2.30.2