binutils-gdb/gdb/gnulib/import/m4
Sergio Durigan Junior e2fc52e745 Fix PR gdb/23558: Use system's 'getcwd' when cross-compiling GDB
This is a backport of a gnulib fix for the following bug:

  https://sourceware.org/bugzilla/show_bug.cgi?id=23558

The problem reported there is about the replacement of 'getcwd' when
cross-compiling GDB.  With our current gnulib copy, the mechanism for
deciding whether to use the system's 'getcwd' or gnulib's version is
too simplistic and pessimistic, so when cross-compiling we always end
up using gnulib's version, which has a limitation: it cannot handle
the situation when the parent directory doesn't have read permissions.

The solution is to backport the following gnulib commit:

  commit a96d2e67052c879b1bcc5bc461722beac75fc372
  Author: Bruno Haible <bruno@clisp.org>
  Date:   Thu Aug 23 21:13:19 2018 +0200

      getcwd: Add cross-compilation guesses.

gdb/ChangeLog:
2018-09-10  Sergio Durigan Junior  <sergiodj@redhat.com>

	PR gdb/23555
	PR gdb/23558
	* gnulib/import/m4/getcwd-path-max.m4: Add cross-compilation
	guesses.
2018-09-10 13:52:24 -04:00
..
00gnulib.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
absolute-header.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
alloca.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
canonicalize.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
chdir-long.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
close.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
closedir.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
codeset.m4 Update gnulib to current upstream master 2016-10-18 17:18:29 +01:00
configmake.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
d-ino.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
d-type.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
dirent_h.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
dirfd.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
dirname.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
double-slash-root.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
dup2.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
dup.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
eealloc.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
environ.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
errno_h.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
error.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
exponentd.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
exponentl.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
extensions.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
extern-inline.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
fchdir.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
fcntl_h.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
fcntl-o.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
fcntl.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
fdopendir.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
filenamecat.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
flexmember.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
float_h.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
fnmatch.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
fpieee.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
frexp.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
frexpl.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
fstat.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
fstatat.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
getcwd-abort-bug.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
getcwd-path-max.m4 Fix PR gdb/23558: Use system's 'getcwd' when cross-compiling GDB 2018-09-10 13:52:24 -04:00
getcwd.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
getdtablesize.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
getlogin_r.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
getprogname.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
gettimeofday.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
glibc21.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
glob.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
gnulib-cache.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
gnulib-common.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
gnulib-comp.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
gnulib-tool.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
hard-locale.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
include_next.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
inttypes-pri.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
inttypes.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
isnand.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
isnanl.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
largefile.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
limits-h.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
localcharset.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
locale-fr.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
locale-ja.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
locale-zh.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
longlong.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
lstat.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
malloc.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
malloca.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
math_h.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
mbrtowc.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
mbsinit.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
mbsrtowcs.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
mbstate_t.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
memchr.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
memmem.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
mempcpy.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
memrchr.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
mkdir.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
mkstemp.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
mmap-anon.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
mode_t.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
msvc-inval.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
msvc-nothrow.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
multiarch.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
nocrash.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
off_t.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
onceonly.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
open.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
openat.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
opendir.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
pathmax.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
rawmemchr.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
readdir.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
readlink.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
realloc.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
rename.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
rewinddir.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
rmdir.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
save-cwd.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
secure_getenv.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
setenv.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
signal_h.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
ssize_t.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
stat.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
stdbool.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
stddef_h.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
stdint.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
stdio_h.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
stdlib_h.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
strchrnul.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
strdup.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
strerror.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
string_h.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
strstr.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
strtok_r.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
sys_socket_h.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
sys_stat_h.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
sys_time_h.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
sys_types_h.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
tempname.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
time_h.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
unistd_h.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
unistd-safer.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
warn-on-use.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
wchar_h.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
wchar_t.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
wctype_h.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00
wint_t.m4 Revert "Update gnulib to current upstream master" 2018-09-10 13:52:24 -04:00