aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver/gdbreplay.c
diff options
context:
space:
mode:
authorgdbadmin <gdbadmin@sourceware.org>2010-09-01 17:29:32 +0000
committergdbadmin <gdbadmin@sourceware.org>2010-09-01 17:29:32 +0000
commita778ab81e80a778f4d9b0cf754aa6dc956bdcfd2 (patch)
treed0a25c93f53e7ff31c5817a99ab6a58f888a8b55 /gdb/gdbserver/gdbreplay.c
parent8b034a19a784263fcdfc8becdddadb4579c46ada (diff)
downloadgdb-a778ab81e80a778f4d9b0cf754aa6dc956bdcfd2.zip
gdb-a778ab81e80a778f4d9b0cf754aa6dc956bdcfd2.tar.gz
gdb-a778ab81e80a778f4d9b0cf754aa6dc956bdcfd2.tar.bz2
[gdbserver] Move malloc.h include to server.h.
This patch moves all includes of malloc.h, which were introduced purely to get access to alloca's declaration, to server.h, next to the include of alloca.h. There is one exception: gdbreplay.c, which does not include server.h. In this case, the include of alloca.h was simply moved up a bit, next to the include of malloc.h. gdb/gdbserver/ChangeLog: * gdbreplay.c: Move include of alloca.h up, next to include of malloc.h. * server.h: Add include of malloc.h. * mem-break.c: Remove include of malloc.h. * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
Diffstat (limited to 'gdb/gdbserver/gdbreplay.c')
-rw-r--r--gdb/gdbserver/gdbreplay.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/gdbserver/gdbreplay.c b/gdb/gdbserver/gdbreplay.c
index 4996ffa..1f65111 100644
--- a/gdb/gdbserver/gdbreplay.c
+++ b/gdb/gdbserver/gdbreplay.c
@@ -54,15 +54,15 @@
#if HAVE_NETINET_TCP_H
#include <netinet/tcp.h>
#endif
+#if HAVE_ALLOCA_H
+#include <alloca.h>
+#endif
#if HAVE_MALLOC_H
#include <malloc.h>
#endif
#if USE_WIN32API
#include <winsock2.h>
#endif
-#if HAVE_ALLOCA_H
-#include <alloca.h>
-#endif
#ifndef HAVE_SOCKLEN_T
typedef int socklen_t;