Use readlink unconditionally
authorYao Qi <yao@codesourcery.com>
Tue, 4 Nov 2014 14:17:02 +0000 (22:17 +0800)
committerYao Qi <yao@codesourcery.com>
Fri, 28 Nov 2014 10:37:52 +0000 (18:37 +0800)
commitbdca27a2f57f5152ec83766d7a8b25b2d33b8905
treeef9071bec4fb43dbce216e92fee033b7754e7dda
parent2196f55f0140f3e278ed4002040f32acc5a6aaf1
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.
gdb/ChangeLog
gdb/config.in
gdb/configure
gdb/configure.ac
gdb/gdbserver/ChangeLog
gdb/gdbserver/config.in
gdb/gdbserver/configure
gdb/gdbserver/configure.ac
gdb/gdbserver/hostio.c
gdb/inf-child.c