From: Pedro Alves <pedro@codesourcery.com>
To: gdb-patches@sourceware.org
Subject: [gdbserver/mingw] Prepare for building gdbserver with -Werror
Date: Thu, 26 Aug 2010 16:49:00 -0000 [thread overview]
Message-ID: <201008261749.29812.pedro@codesourcery.com> (raw)
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;
reply other threads:[~2010-08-26 16:49 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201008261749.29812.pedro@codesourcery.com \
--to=pedro@codesourcery.com \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).