[gdbserver] Move malloc.h include to server.h.
authorgdbadmin <gdbadmin@sourceware.org>
Wed, 1 Sep 2010 17:29:32 +0000 (17:29 +0000)
committergdbadmin <gdbadmin@sourceware.org>
Wed, 1 Sep 2010 17:29:32 +0000 (17:29 +0000)
commita778ab81e80a778f4d9b0cf754aa6dc956bdcfd2
treed0a25c93f53e7ff31c5817a99ab6a58f888a8b55
parent8b034a19a784263fcdfc8becdddadb4579c46ada
[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.
gdb/gdbserver/ChangeLog
gdb/gdbserver/gdbreplay.c
gdb/gdbserver/mem-break.c
gdb/gdbserver/server.c
gdb/gdbserver/server.h
gdb/gdbserver/tracepoint.c
gdb/gdbserver/utils.c
gdb/gdbserver/win32-low.c