aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorMichael Chastain <mec@google.com>2004-08-05 00:59:23 +0000
committerMichael Chastain <mec@google.com>2004-08-05 00:59:23 +0000
commitcb9aaed5eed5265cd8b9930735c86b980c5f8b84 (patch)
tree7a1cb4ca0bf0779b30107532b8c70e04186e68ee /gdb
parent55944f3dc47e5e33f7093916d846ccba9984985e (diff)
downloadgdb-cb9aaed5eed5265cd8b9930735c86b980c5f8b84.zip
gdb-cb9aaed5eed5265cd8b9930735c86b980c5f8b84.tar.gz
gdb-cb9aaed5eed5265cd8b9930735c86b980c5f8b84.tar.bz2
2004-08-04 Michael Chastain <mec.gnu@mindspring.com>
* gdb.base/complex.c: Include <stdlib.h>.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/testsuite/ChangeLog4
-rw-r--r--gdb/testsuite/gdb.base/complex.c4
2 files changed, 7 insertions, 1 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index f09be36..bfc8961 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,5 +1,9 @@
2004-08-04 Michael Chastain <mec.gnu@mindspring.com>
+ * gdb.base/complex.c: Include <stdlib.h>.
+
+2004-08-04 Michael Chastain <mec.gnu@mindspring.com>
+
* gdb.base/complex.c: Add copyright notice.
2004-08-04 Michael Chastain <mec.gnu@mindspring.com>
diff --git a/gdb/testsuite/gdb.base/complex.c b/gdb/testsuite/gdb.base/complex.c
index dc69f6d..dabbdd6 100644
--- a/gdb/testsuite/gdb.base/complex.c
+++ b/gdb/testsuite/gdb.base/complex.c
@@ -1,4 +1,4 @@
-/* Copyright 2002, 2003
+/* Copyright 2002, 2003, 2004
Free Software Foundation, Inc.
This file is part of GDB.
@@ -21,6 +21,8 @@
/* Test taken from GCC. Verify that we can print a structure containing
a complex number. */
+#include <stdlib.h>
+
typedef __complex__ float cf;
struct x { char c; cf f; } __attribute__ ((__packed__));
struct unpacked_x { char c; cf f; };