aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver/configure.ac
diff options
context:
space:
mode:
authorYao Qi <yao@codesourcery.com>2014-11-04 22:17:02 +0800
committerYao Qi <yao@codesourcery.com>2014-11-28 18:37:52 +0800
commitbdca27a2f57f5152ec83766d7a8b25b2d33b8905 (patch)
treeef9071bec4fb43dbce216e92fee033b7754e7dda /gdb/gdbserver/configure.ac
parent2196f55f0140f3e278ed4002040f32acc5a6aaf1 (diff)
downloadfsf-binutils-gdb-bdca27a2f57f5152ec83766d7a8b25b2d33b8905.zip
fsf-binutils-gdb-bdca27a2f57f5152ec83766d7a8b25b2d33b8905.tar.gz
fsf-binutils-gdb-bdca27a2f57f5152ec83766d7a8b25b2d33b8905.tar.bz2
Use readlink unconditionally
Since readlink module is imported, we can use it unconditionally. This patch is to remove configure checks and HAVE_READLINK checks in code. It was mentioned in the patch below [RFA/commit] gdbserver: return ENOSYS if readlink not supported. https://sourceware.org/ml/gdb-patches/2012-02/msg00148.html to use readlink in gdbserver, but we chose something simple at that moment. gdb: 2014-11-28 Yao Qi <yao@codesourcery.com> * configure.ac (AC_CHECK_FUNCS): Remove readlink. * config.in, configure: Re-generate. * inf-child.c (inf_child_fileio_readlink): Don't check HAVE_READLINK is defined. gdb/gdbserver: 2014-11-28 Yao Qi <yao@codesourcery.com> * configure.ac(AC_CHECK_FUNCS): Remove readlink. * config.in, configure: Re-generate. * hostio.c (handle_unlink): Remove code checking HAVE_READLINK is defined.
Diffstat (limited to 'gdb/gdbserver/configure.ac')
-rw-r--r--gdb/gdbserver/configure.ac2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/gdbserver/configure.ac b/gdb/gdbserver/configure.ac
index 3864ff4..f59e65b 100644
--- a/gdb/gdbserver/configure.ac
+++ b/gdb/gdbserver/configure.ac
@@ -83,7 +83,7 @@ AC_CHECK_HEADERS(sgtty.h termio.h termios.h sys/reg.h string.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)
+AC_CHECK_FUNCS(pread pwrite pread64)
GDB_AC_COMMON