aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1994-03-13 20:17:39 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1994-03-13 20:17:39 +0000
commitc4ad6b09700563cdda539f260f2727667c64d292 (patch)
tree1ae979f63ff23a4db3eaf112a749d040684aff7b /gdb
parent5fa83062a87e15804c237b530cc46866e9a178ff (diff)
downloadgdb-c4ad6b09700563cdda539f260f2727667c64d292.zip
gdb-c4ad6b09700563cdda539f260f2727667c64d292.tar.gz
gdb-c4ad6b09700563cdda539f260f2727667c64d292.tar.bz2
* i386m3-nat.c: Include floatformat.h.
(get_i387_state): Use memset not bzero.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog3
-rw-r--r--gdb/i386m3-nat.c3
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 5685119..f86f820 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 8892e16..b3c9358 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 <stdio.h>
@@ -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;