From c4ad6b09700563cdda539f260f2727667c64d292 Mon Sep 17 00:00:00 2001 From: Jim Kingdon Date: Sun, 13 Mar 1994 20:17:39 +0000 Subject: [PATCH] * i386m3-nat.c: Include floatformat.h. (get_i387_state): Use memset not bzero. --- gdb/ChangeLog | 3 +++ gdb/i386m3-nat.c | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 5685119e11d..f86f820cb59 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,8 @@ Sun Mar 13 09:45:51 1994 Jim Kingdon (kingdon@lioth.cygnus.com) + * i386m3-nat.c: Include floatformat.h. + (get_i387_state): Use memset not bzero. + * Version 4.12.3. * Makefile.in: Enable commented out getopt_h, bfd_h, etc. Change diff --git a/gdb/i386m3-nat.c b/gdb/i386m3-nat.c index 8892e167023..b3c93586d20 100644 --- a/gdb/i386m3-nat.c +++ b/gdb/i386m3-nat.c @@ -19,6 +19,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include "defs.h" #include "inferior.h" +#include "floatformat.h" #include @@ -374,7 +375,7 @@ get_i387_state (fstate) /* Clear the target then copy thread's float state there. Make a copy of the status word, for some reason? */ - bzero (fstate, sizeof(struct fpstate)); + memset (fstate, 0, sizeof (struct fpstate)); fstate->status = fsp->exc_status; -- 2.30.2