This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[rfc] Fix header in gdb.gdbtk


Hi,

some tests in gdb.gdbtk/ fail on x86 because some headers are missing. This patch
adds those.

Btw, why is there a separate ChangeLog?

Ok to commit?


ChangeLog:


	* simple.c: Inlude <stdlib.h> and <string.h> for declarations of
	malloc and strncpy.
	* stack1.c: Inlucde <stdlib.h> for a declaration of exit.


-- Markus Deuling GNU Toolchain for Linux on Cell BE deuling@de.ibm.com

diff -urpN src/gdb/testsuite/gdb.gdbtk/simple.c dev/gdb/testsuite/gdb.gdbtk/simple.c
--- src/gdb/testsuite/gdb.gdbtk/simple.c	2002-09-10 04:13:16.000000000 +0200
+++ dev/gdb/testsuite/gdb.gdbtk/simple.c	2008-02-18 18:16:04.000000000 +0100
@@ -1,3 +1,6 @@
+#include <stdlib.h>
+#include <string.h>
+
 int
 main(int argc, char * argv[])
 {
diff -urpN src/gdb/testsuite/gdb.gdbtk/stack1.c dev/gdb/testsuite/gdb.gdbtk/stack1.c
--- src/gdb/testsuite/gdb.gdbtk/stack1.c	2000-02-07 01:19:45.000000000 +0100
+++ dev/gdb/testsuite/gdb.gdbtk/stack1.c	2008-02-18 18:13:54.000000000 +0100
@@ -1,3 +1,5 @@
+#include <stdlib.h>
+
 /* Functions defined in other files */
 extern void extern_func1_1 (int a, char *b, unsigned long c);
 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]