This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[gdbserver/mingw] Prepare for building gdbserver with -Werror
- From: Pedro Alves <pedro at codesourcery dot com>
- To: gdb-patches at sourceware dot org
- Date: Thu, 26 Aug 2010 17:49:29 +0100
- Subject: [gdbserver/mingw] Prepare for building gdbserver with -Werror
This is needed on mingw32 to build gdbserver warning free (no declaration
for alloca otherwise).
Applied.
--
Pedro Alves
2010-08-26 Pedro Alves <pedro@codesourcery.com>
* mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
---
gdb/gdbserver/mem-break.c | 3 +++
1 file changed, 3 insertions(+)
Index: src/gdb/gdbserver/mem-break.c
===================================================================
--- src.orig/gdb/gdbserver/mem-break.c 2010-08-26 17:45:03.000000000 +0100
+++ src/gdb/gdbserver/mem-break.c 2010-08-26 17:45:23.000000000 +0100
@@ -20,6 +20,9 @@
along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include "server.h"
+#if HAVE_MALLOC_H
+#include <malloc.h>
+#endif
const unsigned char *breakpoint_data;
int breakpoint_len;