binutils-gdb/gnulib/import
Tom Tromey d706b69e48 Do not adjust mtime timezone on Windows
PR win32/25302 notes that gdb will crash when trying to "run" even a
simple program on Windows.  The essential bug here is that the BFD
cache can easily be corrupted -- I have sent a separate patch for
that.

The particular reason that the cache is corrupted on Windows is that
gnulib overrides "stat" to make it do timezone adjustment -- but BFD
does not use this version of stat.  The difference here triggers the
latent cache bug, but can also cause other bugs as well; in particular
it can cause spurious warnings about source files being newer.

This patch simply removes the stat override on mingw, making gnulib
and BFD agree.

I tested this by backing out the local AdaCore changes to work around
this bug and then verifying that I could reproduce it.  Then, I
applied this patch and verified that "run" works again.

2020-09-08  Tom Tromey  <tromey@adacore.com>

	PR win32/25302:
	* update-gnulib.sh: Apply stat patch.
	* patches/0001-use-windows-stat: New file.
	* import/m4/stat.m4: Update.
	* configure: Rebuild.
2020-09-08 10:41:03 -06:00
..
extra Update gnulib to current trunk 2020-08-26 15:37:28 -07:00
glthread gdb: update gnulib import 2020-02-22 20:37:18 -05:00
m4 Do not adjust mtime timezone on Windows 2020-09-08 10:41:03 -06:00
malloc gdb: update gnulib import 2020-02-22 20:37:18 -05:00
_Noreturn.h gdb: update gnulib import 2020-02-22 20:37:18 -05:00
alloca.c Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
alloca.in.h Update gnulib to current trunk 2020-08-26 15:37:28 -07:00
arg-nonnull.h gdb: update gnulib import 2020-02-22 20:37:18 -05:00
arpa_inet.in.h gdb: update gnulib import 2020-02-22 20:37:18 -05:00
assure.h Update gnulib to current trunk 2020-08-26 15:37:28 -07:00
at-func.c Update gnulib to current trunk 2020-08-26 15:37:28 -07:00
attribute.h Update gnulib to current trunk 2020-08-26 15:37:28 -07:00
basename-lgpl.c gdb: update gnulib import 2020-02-22 20:37:18 -05:00
btowc.c Update gnulib to current trunk 2020-08-26 15:37:28 -07:00
c++defs.h gdb: update gnulib import 2020-02-22 20:37:18 -05:00
canonicalize-lgpl.c Update gnulib to current trunk 2020-08-26 15:37:28 -07:00
cdefs.h gdb: update gnulib import 2020-02-22 20:37:18 -05:00
chdir-long.c gdb: update gnulib import 2020-02-22 20:37:18 -05:00
chdir-long.h gdb: update gnulib import 2020-02-22 20:37:18 -05:00
cloexec.c gdb: update gnulib import 2020-02-22 20:37:18 -05:00
cloexec.h gdb: update gnulib import 2020-02-22 20:37:18 -05:00
close.c gdb: update gnulib import 2020-02-22 20:37:18 -05:00
closedir.c gdb: update gnulib import 2020-02-22 20:37:18 -05:00
count-one-bits.c gnulib: import count-one-bits module and use it 2020-02-14 14:41:07 -05:00
count-one-bits.h Update gnulib to current trunk 2020-08-26 15:37:28 -07:00
ctype.in.h Update gnulib to current trunk 2020-08-26 15:37:28 -07:00
dirent-private.h Update gnulib to current trunk 2020-08-26 15:37:28 -07:00
dirent.in.h Update gnulib to current trunk 2020-08-26 15:37:28 -07:00
dirfd.c gdb: update gnulib import 2020-02-22 20:37:18 -05:00
dirname-lgpl.c gdb: update gnulib import 2020-02-22 20:37:18 -05:00
dirname.h Update gnulib to current trunk 2020-08-26 15:37:28 -07:00
dup2.c gdb: update gnulib import 2020-02-22 20:37:18 -05:00
dup-safer-flag.c gdb: update gnulib import 2020-02-22 20:37:18 -05:00
dup-safer.c gdb: update gnulib import 2020-02-22 20:37:18 -05:00
dup.c gdb: update gnulib import 2020-02-22 20:37:18 -05:00
errno.in.h gdb: update gnulib import 2020-02-22 20:37:18 -05:00
error.c gdb: update gnulib import 2020-02-22 20:37:18 -05:00
error.h Update gnulib to current trunk 2020-08-26 15:37:28 -07:00
exitfail.c gdb: update gnulib import 2020-02-22 20:37:18 -05:00
exitfail.h gdb: update gnulib import 2020-02-22 20:37:18 -05:00
fchdir.c Update gnulib to current trunk 2020-08-26 15:37:28 -07:00
fcntl.c gdb: update gnulib import 2020-02-22 20:37:18 -05:00
fcntl.in.h Update gnulib to current trunk 2020-08-26 15:37:28 -07:00
fd-hook.c gdb: update gnulib import 2020-02-22 20:37:18 -05:00
fd-hook.h gdb: update gnulib import 2020-02-22 20:37:18 -05:00
fd-safer-flag.c gdb: update gnulib import 2020-02-22 20:37:18 -05:00
fd-safer.c gdb: update gnulib import 2020-02-22 20:37:18 -05:00
fdopendir.c gdb: update gnulib import 2020-02-22 20:37:18 -05:00
filename.h Update gnulib to current trunk 2020-08-26 15:37:28 -07:00
filenamecat-lgpl.c Update gnulib to current trunk 2020-08-26 15:37:28 -07:00
filenamecat.h gdb: update gnulib import 2020-02-22 20:37:18 -05:00
flexmember.h gdb: update gnulib import 2020-02-22 20:37:18 -05:00
float.c gdb: update gnulib import 2020-02-22 20:37:18 -05:00
float.in.h gdb: update gnulib import 2020-02-22 20:37:18 -05:00
float+.h gdb: update gnulib import 2020-02-22 20:37:18 -05:00
fnmatch_loop.c Update gnulib to current trunk 2020-08-26 15:37:28 -07:00
fnmatch.c Update gnulib to current trunk 2020-08-26 15:37:28 -07:00
fnmatch.in.h gdb: update gnulib import 2020-02-22 20:37:18 -05:00
fpucw.h gdb: update gnulib import 2020-02-22 20:37:18 -05:00
frexp.c gdb: update gnulib import 2020-02-22 20:37:18 -05:00
frexpl.c gdb: update gnulib import 2020-02-22 20:37:18 -05:00
fstat.c gdb: update gnulib import 2020-02-22 20:37:18 -05:00
fstatat.c gdb: update gnulib import 2020-02-22 20:37:18 -05:00
getcwd-lgpl.c gdb: update gnulib import 2020-02-22 20:37:18 -05:00
getcwd.c Update gnulib to current trunk 2020-08-26 15:37:28 -07:00
getdtablesize.c gdb: update gnulib import 2020-02-22 20:37:18 -05:00
getlogin_r.c Update gnulib to current trunk 2020-08-26 15:37:28 -07:00
getprogname.c Update gnulib to current trunk 2020-08-26 15:37:28 -07:00
getprogname.h gdb: update gnulib import 2020-02-22 20:37:18 -05:00
getrandom.c Update gnulib to current trunk 2020-08-26 15:37:28 -07:00
gettext.h gdb: update gnulib import 2020-02-22 20:37:18 -05:00
gettimeofday.c Update gnulib to current trunk 2020-08-26 15:37:28 -07:00
glob_internal.h gdb: update gnulib import 2020-02-22 20:37:18 -05:00
glob_pattern_p.c gdb: update gnulib import 2020-02-22 20:37:18 -05:00
glob-libc.h gdb: update gnulib import 2020-02-22 20:37:18 -05:00
glob.c gdb: update gnulib import 2020-02-22 20:37:18 -05:00
glob.in.h Update gnulib to current trunk 2020-08-26 15:37:28 -07:00
globfree.c gdb: update gnulib import 2020-02-22 20:37:18 -05:00
hard-locale.c gdb: update gnulib import 2020-02-22 20:37:18 -05:00
hard-locale.h gdb: update gnulib import 2020-02-22 20:37:18 -05:00
inet_ntop.c gdb: update gnulib import 2020-02-22 20:37:18 -05:00
intprops.h gdb: update gnulib import 2020-02-22 20:37:18 -05:00
inttypes.in.h Update gnulib to current trunk 2020-08-26 15:37:28 -07:00
isblank.c Update gnulib to current trunk 2020-08-26 15:37:28 -07:00
isnan.c gdb: update gnulib import 2020-02-22 20:37:18 -05:00
isnand-nolibm.h gdb: update gnulib import 2020-02-22 20:37:18 -05:00
isnand.c gdb: update gnulib import 2020-02-22 20:37:18 -05:00
isnanl-nolibm.h Update gnulib to current trunk 2020-08-26 15:37:28 -07:00
isnanl.c gdb: update gnulib import 2020-02-22 20:37:18 -05:00
itold.c gdb: update gnulib import 2020-02-22 20:37:18 -05:00
lc-charset-dispatch.c gdb: update gnulib import 2020-02-22 20:37:18 -05:00
lc-charset-dispatch.h gdb: update gnulib import 2020-02-22 20:37:18 -05:00
libc-config.h Update gnulib to current trunk 2020-08-26 15:37:28 -07:00
limits.in.h Update gnulib to current trunk 2020-08-26 15:37:28 -07:00
localcharset.c gdb: update gnulib import 2020-02-22 20:37:18 -05:00
localcharset.h gdb: update gnulib import 2020-02-22 20:37:18 -05:00
locale.in.h gdb: update gnulib import 2020-02-22 20:37:18 -05:00
localtime-buffer.c gdb: update gnulib import 2020-02-22 20:37:18 -05:00
localtime-buffer.h gdb: update gnulib import 2020-02-22 20:37:18 -05:00
lstat.c gdb: update gnulib import 2020-02-22 20:37:18 -05:00
Makefile.am Update gnulib to current trunk 2020-08-26 15:37:28 -07:00
Makefile.in Update gnulib to current trunk 2020-08-26 15:37:28 -07:00
malloc.c gdb: update gnulib import 2020-02-22 20:37:18 -05:00
malloca.c gdb: update gnulib import 2020-02-22 20:37:18 -05:00
malloca.h gdb: update gnulib import 2020-02-22 20:37:18 -05:00
math.c
math.in.h Update gnulib to current trunk 2020-08-26 15:37:28 -07:00
mbrtowc-impl-utf8.h gdb: update gnulib import 2020-02-22 20:37:18 -05:00
mbrtowc-impl.h gdb: update gnulib import 2020-02-22 20:37:18 -05:00
mbrtowc.c Update gnulib to current trunk 2020-08-26 15:37:28 -07:00
mbsinit.c gdb: update gnulib import 2020-02-22 20:37:18 -05:00
mbsrtowcs-impl.h gdb: update gnulib import 2020-02-22 20:37:18 -05:00
mbsrtowcs-state.c gdb: update gnulib import 2020-02-22 20:37:18 -05:00
mbsrtowcs.c gdb: update gnulib import 2020-02-22 20:37:18 -05:00
mbtowc-impl.h Update gnulib to current trunk 2020-08-26 15:37:28 -07:00
mbtowc-lock.c gdb: update gnulib import 2020-02-22 20:37:18 -05:00
mbtowc-lock.h gdb: update gnulib import 2020-02-22 20:37:18 -05:00
mbtowc.c Update gnulib to current trunk 2020-08-26 15:37:28 -07:00
memchr.c gdb: update gnulib import 2020-02-22 20:37:18 -05:00
memchr.valgrind gdb: update gnulib import 2020-02-22 20:37:18 -05:00
memmem.c gdb: update gnulib import 2020-02-22 20:37:18 -05:00
mempcpy.c gdb: update gnulib import 2020-02-22 20:37:18 -05:00
memrchr.c gdb: update gnulib import 2020-02-22 20:37:18 -05:00
minmax.h Update gnulib to current trunk 2020-08-26 15:37:28 -07:00
mkdir.c gdb: update gnulib import 2020-02-22 20:37:18 -05:00
mkdtemp.c gdb: update gnulib import 2020-02-22 20:37:18 -05:00
mkostemp.c gdb: update gnulib import 2020-02-22 20:37:18 -05:00
msvc-inval.c gdb: update gnulib import 2020-02-22 20:37:18 -05:00
msvc-inval.h gdb: update gnulib import 2020-02-22 20:37:18 -05:00
msvc-nothrow.c gdb: update gnulib import 2020-02-22 20:37:18 -05:00
msvc-nothrow.h gdb: update gnulib import 2020-02-22 20:37:18 -05:00
netinet_in.in.h gdb: update gnulib import 2020-02-22 20:37:18 -05:00
open.c Update gnulib to current trunk 2020-08-26 15:37:28 -07:00
openat-die.c gdb: update gnulib import 2020-02-22 20:37:18 -05:00
openat-priv.h gdb: update gnulib import 2020-02-22 20:37:18 -05:00
openat-proc.c Update gnulib to current trunk 2020-08-26 15:37:28 -07:00
openat.c Update gnulib to current trunk 2020-08-26 15:37:28 -07:00
openat.h Update gnulib to current trunk 2020-08-26 15:37:28 -07:00
opendir.c Update gnulib to current trunk 2020-08-26 15:37:28 -07:00
pathmax.h gdb: update gnulib import 2020-02-22 20:37:18 -05:00
pipe-safer.c gdb: update gnulib import 2020-02-22 20:37:18 -05:00
rawmemchr.c gdb: update gnulib import 2020-02-22 20:37:18 -05:00
rawmemchr.valgrind gdb: update gnulib import 2020-02-22 20:37:18 -05:00
readdir.c Update gnulib to current trunk 2020-08-26 15:37:28 -07:00
readlink.c gdb: update gnulib import 2020-02-22 20:37:18 -05:00
realloc.c gdb: update gnulib import 2020-02-22 20:37:18 -05:00
rename.c Update gnulib to current trunk 2020-08-26 15:37:28 -07:00
rewinddir.c Update gnulib to current trunk 2020-08-26 15:37:28 -07:00
rmdir.c Update gnulib to current trunk 2020-08-26 15:37:28 -07:00
same-inode.h gdb: update gnulib import 2020-02-22 20:37:18 -05:00
save-cwd.c gdb: update gnulib import 2020-02-22 20:37:18 -05:00
save-cwd.h gdb: update gnulib import 2020-02-22 20:37:18 -05:00
scratch_buffer.h Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
setenv.c gdb: update gnulib import 2020-02-22 20:37:18 -05:00
setlocale_null.c gdb: update gnulib import 2020-02-22 20:37:18 -05:00
setlocale_null.h gdb: update gnulib import 2020-02-22 20:37:18 -05:00
setlocale-lock.c gdb: update gnulib import 2020-02-22 20:37:18 -05:00
signal.in.h Update gnulib to current trunk 2020-08-26 15:37:28 -07:00
stat-time.c Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
stat-time.h gdb: update gnulib import 2020-02-22 20:37:18 -05:00
stat-w32.c Update gnulib to current trunk 2020-08-26 15:37:28 -07:00
stat-w32.h gdb: update gnulib import 2020-02-22 20:37:18 -05:00
stat.c Update gnulib to current trunk 2020-08-26 15:37:28 -07:00
stdalign.in.h gdb: update gnulib import 2020-02-22 20:37:18 -05:00
stdbool.in.h gdb: update gnulib import 2020-02-22 20:37:18 -05:00
stddef.in.h gdb: update gnulib import 2020-02-22 20:37:18 -05:00
stdint.in.h gdb: update gnulib import 2020-02-22 20:37:18 -05:00
stdio.in.h Update gnulib to current trunk 2020-08-26 15:37:28 -07:00
stdlib.in.h Update gnulib to current trunk 2020-08-26 15:37:28 -07:00
str-two-way.h gdb: update gnulib import 2020-02-22 20:37:18 -05:00
strchrnul.c gdb: update gnulib import 2020-02-22 20:37:18 -05:00
strchrnul.valgrind gdb: update gnulib import 2020-02-22 20:37:18 -05:00
strdup.c gdb: update gnulib import 2020-02-22 20:37:18 -05:00
streq.h gdb: update gnulib import 2020-02-22 20:37:18 -05:00
strerror_r.c gdb: update gnulib import 2020-02-22 20:37:18 -05:00
strerror-override.c gdb: update gnulib import 2020-02-22 20:37:18 -05:00
strerror-override.h gdb: update gnulib import 2020-02-22 20:37:18 -05:00
strerror.c gdb: update gnulib import 2020-02-22 20:37:18 -05:00
string.in.h Update gnulib to current trunk 2020-08-26 15:37:28 -07:00
stripslash.c gdb: update gnulib import 2020-02-22 20:37:18 -05:00
strnlen1.c gdb: update gnulib import 2020-02-22 20:37:18 -05:00
strnlen1.h gdb: update gnulib import 2020-02-22 20:37:18 -05:00
strnlen.c Update gnulib to current trunk 2020-08-26 15:37:28 -07:00
strstr.c gdb: update gnulib import 2020-02-22 20:37:18 -05:00
strtok_r.c gdb: update gnulib import 2020-02-22 20:37:18 -05:00
sys_random.in.h Update gnulib to current trunk 2020-08-26 15:37:28 -07:00
sys_socket.c
sys_socket.in.h Update gnulib to current trunk 2020-08-26 15:37:28 -07:00
sys_stat.in.h Update gnulib to current trunk 2020-08-26 15:37:28 -07:00
sys_time.in.h gdb: update gnulib import 2020-02-22 20:37:18 -05:00
sys_types.in.h gdb: update gnulib import 2020-02-22 20:37:18 -05:00
sys_uio.in.h gdb: update gnulib import 2020-02-22 20:37:18 -05:00
tempname.c Update gnulib to current trunk 2020-08-26 15:37:28 -07:00
tempname.h Update gnulib to current trunk 2020-08-26 15:37:28 -07:00
time_r.c gdb: update gnulib import 2020-02-22 20:37:18 -05:00
time.in.h Update gnulib to current trunk 2020-08-26 15:37:28 -07:00
unistd--.h gdb: update gnulib import 2020-02-22 20:37:18 -05:00
unistd-safer.h gdb: update gnulib import 2020-02-22 20:37:18 -05:00
unistd.c
unistd.in.h Update gnulib to current trunk 2020-08-26 15:37:28 -07:00
unsetenv.c gdb: update gnulib import 2020-02-22 20:37:18 -05:00
verify.h Update gnulib to current trunk 2020-08-26 15:37:28 -07:00
warn-on-use.h Update gnulib to current trunk 2020-08-26 15:37:28 -07:00
wchar.in.h Update gnulib to current trunk 2020-08-26 15:37:28 -07:00
wctype-h.c
wctype.in.h gdb: update gnulib import 2020-02-22 20:37:18 -05:00
windows-initguard.h gdb: update gnulib import 2020-02-22 20:37:18 -05:00
windows-mutex.c gdb: update gnulib import 2020-02-22 20:37:18 -05:00
windows-mutex.h gdb: update gnulib import 2020-02-22 20:37:18 -05:00
windows-once.c gdb: update gnulib import 2020-02-22 20:37:18 -05:00
windows-once.h gdb: update gnulib import 2020-02-22 20:37:18 -05:00
windows-recmutex.c gdb: update gnulib import 2020-02-22 20:37:18 -05:00
windows-recmutex.h gdb: update gnulib import 2020-02-22 20:37:18 -05:00
windows-rwlock.c Update gnulib to current trunk 2020-08-26 15:37:28 -07:00
windows-rwlock.h gdb: update gnulib import 2020-02-22 20:37:18 -05:00
wmemchr-impl.h Update gnulib to current trunk 2020-08-26 15:37:28 -07:00
wmemchr.c Update gnulib to current trunk 2020-08-26 15:37:28 -07:00
wmempcpy.c Update gnulib to current trunk 2020-08-26 15:37:28 -07:00
xalloc-oversized.h gdb: update gnulib import 2020-02-22 20:37:18 -05:00