diff options
author | Yao Qi <yao@codesourcery.com> | 2014-11-21 22:05:41 +0800 |
---|---|---|
committer | Yao Qi <yao@codesourcery.com> | 2014-11-21 22:05:41 +0800 |
commit | 9c232dda88ade649e92be7a6c9917e0a80ea54c8 (patch) | |
tree | 2a4258ccf45bea0c8146a59eb403a4eedb69242f /gdb/gdbserver/configure.ac | |
parent | 00d7f58fd4e59c9ffe375f3a6edbe918fd7b5645 (diff) | |
download | gdb-9c232dda88ade649e92be7a6c9917e0a80ea54c8.zip gdb-9c232dda88ade649e92be7a6c9917e0a80ea54c8.tar.gz gdb-9c232dda88ade649e92be7a6c9917e0a80ea54c8.tar.bz2 |
Include alloca.h unconditionally
Since gnulib alloca module was imported, we can include alloca.h in
both gdb and gdbserver unconditionally, so this patch adds inclusion
of alloca.h in common-defs.h. This patch also removes AC_FUNC_ALLOCA
in configure.ac because we don't need to check alloca any more.
This patch below is removed in fact.
[RFA/commit] include alloca.h if available.
https://www.sourceware.org/ml/gdb-patches/2010-08/msg00566.html
Since alloca.h is from gnulib now, we don't have to check malloc.h in
configure and include malloc.h in code. This patch also remove them
too.
gdb:
2014-11-21 Yao Qi <yao@codesourcery.com>
* common/common-defs.h: Include alloca.h
* configure.ac: Don't invoke AC_FUNC_ALLOCA.
* configure: Re-generated.
* defs.h: Remove code handling alloca.
* utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
or not.
gdb/gdbserver:
2014-11-21 Yao Qi <yao@codesourcery.com>
* configure.ac: Don't invoke AC_FUNC_ALLOCA.
(AC_CHECK_HEADERS): Remove malloc.h.
* configure: Re-generated.
* config.in: Re-generated.
* server.h: Don't include alloca.h and malloc.h.
* gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
Don't include malloc.h.
Diffstat (limited to 'gdb/gdbserver/configure.ac')
-rw-r--r-- | gdb/gdbserver/configure.ac | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gdb/gdbserver/configure.ac b/gdb/gdbserver/configure.ac index 8e5d74f..3864ff4 100644 --- a/gdb/gdbserver/configure.ac +++ b/gdb/gdbserver/configure.ac @@ -39,8 +39,6 @@ AC_ARG_PROGRAM AC_HEADER_STDC -AC_FUNC_ALLOCA - # Set the 'development' global. . $srcdir/../../bfd/development.sh @@ -82,7 +80,7 @@ ACX_CONFIGURE_DIR(["../../libiberty"], ["build-libiberty-gdbserver"]) AC_CHECK_HEADERS(sgtty.h termio.h termios.h sys/reg.h string.h dnl proc_service.h sys/procfs.h linux/elf.h dnl - fcntl.h signal.h sys/file.h malloc.h dnl + fcntl.h signal.h sys/file.h dnl sys/ioctl.h netinet/in.h sys/socket.h netdb.h dnl netinet/tcp.h arpa/inet.h) AC_CHECK_FUNCS(pread pwrite pread64 readlink) |