mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-21 18:39:34 +08:00
[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.
This commit is contained in:
@ -1,3 +1,11 @@
|
|||||||
|
2010-09-01 Joel Brobecker <brobecker@adacore.com>
|
||||||
|
|
||||||
|
* 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.
|
||||||
|
|
||||||
2010-09-01 Joel Brobecker <brobecker@adacore.com>
|
2010-09-01 Joel Brobecker <brobecker@adacore.com>
|
||||||
|
|
||||||
* Makefile.in (memmem.o): Build with -Wno-error.
|
* Makefile.in (memmem.o): Build with -Wno-error.
|
||||||
|
@ -54,15 +54,15 @@
|
|||||||
#if HAVE_NETINET_TCP_H
|
#if HAVE_NETINET_TCP_H
|
||||||
#include <netinet/tcp.h>
|
#include <netinet/tcp.h>
|
||||||
#endif
|
#endif
|
||||||
|
#if HAVE_ALLOCA_H
|
||||||
|
#include <alloca.h>
|
||||||
|
#endif
|
||||||
#if HAVE_MALLOC_H
|
#if HAVE_MALLOC_H
|
||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
#endif
|
#endif
|
||||||
#if USE_WIN32API
|
#if USE_WIN32API
|
||||||
#include <winsock2.h>
|
#include <winsock2.h>
|
||||||
#endif
|
#endif
|
||||||
#if HAVE_ALLOCA_H
|
|
||||||
#include <alloca.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef HAVE_SOCKLEN_T
|
#ifndef HAVE_SOCKLEN_T
|
||||||
typedef int socklen_t;
|
typedef int socklen_t;
|
||||||
|
@ -20,9 +20,6 @@
|
|||||||
along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||||
|
|
||||||
#include "server.h"
|
#include "server.h"
|
||||||
#if HAVE_MALLOC_H
|
|
||||||
#include <malloc.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
const unsigned char *breakpoint_data;
|
const unsigned char *breakpoint_data;
|
||||||
int breakpoint_len;
|
int breakpoint_len;
|
||||||
|
@ -28,9 +28,6 @@
|
|||||||
#if HAVE_SYS_WAIT_H
|
#if HAVE_SYS_WAIT_H
|
||||||
#include <sys/wait.h>
|
#include <sys/wait.h>
|
||||||
#endif
|
#endif
|
||||||
#if HAVE_MALLOC_H
|
|
||||||
#include <malloc.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
ptid_t cont_thread;
|
ptid_t cont_thread;
|
||||||
ptid_t general_thread;
|
ptid_t general_thread;
|
||||||
|
@ -41,6 +41,11 @@
|
|||||||
#ifdef HAVE_ALLOCA_H
|
#ifdef HAVE_ALLOCA_H
|
||||||
#include <alloca.h>
|
#include <alloca.h>
|
||||||
#endif
|
#endif
|
||||||
|
/* On some systems such as MinGW, alloca is declared in malloc.h
|
||||||
|
(there is no alloca.h). */
|
||||||
|
#if HAVE_MALLOC_H
|
||||||
|
#include <malloc.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#if !HAVE_DECL_STRERROR
|
#if !HAVE_DECL_STRERROR
|
||||||
#ifndef strerror
|
#ifndef strerror
|
||||||
|
@ -22,9 +22,6 @@
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#if HAVE_MALLOC_H
|
|
||||||
#include <malloc.h>
|
|
||||||
#endif
|
|
||||||
#if HAVE_STDINT_H
|
#if HAVE_STDINT_H
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#endif
|
#endif
|
||||||
|
@ -24,9 +24,6 @@
|
|||||||
#if HAVE_ERRNO_H
|
#if HAVE_ERRNO_H
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#endif
|
#endif
|
||||||
#if HAVE_MALLOC_H
|
|
||||||
#include <malloc.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef IN_PROCESS_AGENT
|
#ifdef IN_PROCESS_AGENT
|
||||||
# define PREFIX "ipa: "
|
# define PREFIX "ipa: "
|
||||||
|
@ -31,7 +31,6 @@
|
|||||||
#include <tlhelp32.h>
|
#include <tlhelp32.h>
|
||||||
#include <psapi.h>
|
#include <psapi.h>
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#include <malloc.h>
|
|
||||||
#include <process.h>
|
#include <process.h>
|
||||||
|
|
||||||
#ifndef USE_WIN32API
|
#ifndef USE_WIN32API
|
||||||
|
Reference in New Issue
Block a user