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]

gdbserver Solaris [3/9] - alloca.h


gdb/gdbserver ChangeLog entry:

2010-04-23  Pieter Maljaars  <pieter.maljaars@altenpts.nl>

        * server.c: Add missing <alloca.h>.
	* utils.c: Add missing <alloca.h>.
	* gdbreplay.c: Add missing <alloca.h>.
	* configure.ac: Check for <alloca.h>.
	* config.in: Regenerate.

diff -upN src-orig/src/gdb/gdbserver/server.c src/gdb/gdbserver/server.c
--- src-orig/src/gdb/gdbserver/server.c	2010-04-16 09:49:36.000000000 +0200
+++ src/gdb/gdbserver/server.c	2010-04-21 11:38:11.000000000 +0200
@@ -31,6 +31,9 @@
 #if HAVE_MALLOC_H
 #include <malloc.h>
 #endif
+#if HAVE_ALLOCA_H
+#include <alloca.h>
+#endif
 
 ptid_t cont_thread;
 ptid_t general_thread;
diff -upN src-orig/src/gdb/gdbserver/utils.c src/gdb/gdbserver/utils.c
--- src-orig/src/gdb/gdbserver/utils.c	2010-04-09 05:40:00.000000000 +0200
+++ src/gdb/gdbserver/utils.c	2010-04-21 11:40:49.000000000 +0200
@@ -27,6 +27,9 @@
 #if HAVE_MALLOC_H
 #include <malloc.h>
 #endif
+#if HAVE_ALLOCA_H
+#include <alloca.h>
+#endif
 
 /* Generally useful subroutines used throughout the program.  */
 
diff -upN src-orig/src/gdb/gdbserver/gdbreplay.c src/gdb/gdbserver/gdbreplay.c
--- src-orig/src/gdb/gdbserver/gdbreplay.c	2010-04-17 22:43:13.000000000 +0200
+++ src/gdb/gdbserver/gdbreplay.c	2010-04-21 09:49:45.000000000 +0200
@@ -57,6 +57,9 @@
 #if HAVE_MALLOC_H
 #include <malloc.h>
 #endif
+#if HAVE_ALLOCA_H
+#include <alloca.h>
+#endif
 
 #if USE_WIN32API
 #include <winsock2.h>
diff -upN src-orig/src/gdb/gdbserver/configure.ac src/gdb/gdbserver/configure.ac
--- src-orig/src/gdb/gdbserver/configure.ac	2010-04-17 22:43:13.000000000 +0200
+++ src/gdb/gdbserver/configure.ac	2010-04-21 09:47:13.000000000 +0200
@@ -39,7 +39,7 @@ AC_HEADER_STDC
 AC_CHECK_HEADERS(sgtty.h termio.h termios.h sys/reg.h string.h dnl
 		 proc_service.h sys/procfs.h thread_db.h linux/elf.h dnl
 		 stdlib.h unistd.h dnl
-		 errno.h fcntl.h signal.h sys/file.h malloc.h dnl
+		 errno.h fcntl.h signal.h sys/file.h malloc.h alloca.h dnl
 		 sys/ioctl.h netinet/in.h sys/socket.h netdb.h dnl
 		 netinet/tcp.h arpa/inet.h sys/wait.h)
 AC_CHECK_FUNCS(pread pwrite pread64)
diff -upN src-orig/src/gdb/gdbserver/config.in src/gdb/gdbserver/config.in
--- src-orig/src/gdb/gdbserver/config.in	2009-12-21 21:52:53.000000000 +0100
+++ src/gdb/gdbserver/config.in	2010-04-21 09:40:37.000000000 +0200
@@ -1,5 +1,8 @@
 /* config.in.  Generated from configure.ac by autoheader.  */
 
+/* Define to 1 if you have the <alloca.h> header file. */
+#undef HAVE_ALLOCA_H
+
 /* Define to 1 if you have the <arpa/inet.h> header file. */
 #undef HAVE_ARPA_INET_H
 


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