Since lstat gnulib module is imported, we can use it unconditionally.
lstat usage was introduced by this patch
https://sourceware.org/ml/gdb-patches/2012-01/msg00390.html
during the review, it was suggested to import gnulib lstat module, but
we didn't do that.
gdb:
2014-11-28 Yao Qi <yao@codesourcery.com>
* configure.ac (AC_CHECK_FUNCS): Remove lstat.
* config.in, configure: Regenerate.
* symfile.c (find_separate_debug_file_by_debuglink): Remove
code checking HAVE_LSTAT is defined.
+2014-11-28 Yao Qi <yao@codesourcery.com>
+
+ * configure.ac (AC_CHECK_FUNCS): Remove lstat.
+ * config.in, configure: Regenerate.
+ * symfile.c (find_separate_debug_file_by_debuglink): Remove
+ code checking HAVE_LSTAT is defined.
+
2014-11-28 Yao Qi <yao@codesourcery.com>
* gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
/* Define to 1 if the compiler supports long double. */
#undef HAVE_LONG_DOUBLE
-/* Define to 1 if you have the `lstat' function. */
-#undef HAVE_LSTAT
-
/* Define if <sys/procfs.h> has lwpid_t. */
#undef HAVE_LWPID_T
sbrk setpgid setpgrp setsid \
sigaction sigprocmask sigsetmask socketpair \
ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
- setrlimit getrlimit posix_madvise waitpid lstat \
+ setrlimit getrlimit posix_madvise waitpid \
ptrace64 sigaltstack
do :
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
sbrk setpgid setpgrp setsid \
sigaction sigprocmask sigsetmask socketpair \
ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
- setrlimit getrlimit posix_madvise waitpid lstat \
+ setrlimit getrlimit posix_madvise waitpid \
ptrace64 sigaltstack])
AM_LANGINFO_CODESET
GDB_AC_COMMON
if (debugfile == NULL)
{
-#ifdef HAVE_LSTAT
/* For PR gdb/9538, try again with realpath (if different from the
original). */
}
}
}
-#endif /* HAVE_LSTAT */
}
do_cleanups (cleanups);