diff options
author | gdbadmin <gdbadmin@sourceware.org> | 2010-09-01 17:29:32 +0000 |
---|---|---|
committer | gdbadmin <gdbadmin@sourceware.org> | 2010-09-01 17:29:32 +0000 |
commit | a778ab81e80a778f4d9b0cf754aa6dc956bdcfd2 (patch) | |
tree | d0a25c93f53e7ff31c5817a99ab6a58f888a8b55 /gdb/gdbserver/gdbreplay.c | |
parent | 8b034a19a784263fcdfc8becdddadb4579c46ada (diff) | |
download | gdb-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.c | 6 |
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; |