public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [gdbserver/mingw] Prepare for building gdbserver with -Werror
@ 2010-08-26 16:49 Pedro Alves
  0 siblings, 0 replies; only message in thread
From: Pedro Alves @ 2010-08-26 16:49 UTC (permalink / raw)
  To: gdb-patches

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;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-08-26 16:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-26 16:49 [gdbserver/mingw] Prepare for building gdbserver with -Werror Pedro Alves

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).