2018-09-03 05:11:46 +08:00
|
|
|
# THIS FILE IS GENERATED. -*- buffer-read-only: t -*- vi :set ro:
|
|
|
|
aclocal_m4_deps = \
|
2018-09-19 05:05:47 +08:00
|
|
|
import/m4/00gnulib.m4 \
|
|
|
|
import/m4/absolute-header.m4 \
|
|
|
|
import/m4/alloca.m4 \
|
2018-09-19 05:05:47 +08:00
|
|
|
import/m4/arpa_inet_h.m4 \
|
2018-09-19 05:05:47 +08:00
|
|
|
import/m4/canonicalize.m4 \
|
2018-09-03 05:11:46 +08:00
|
|
|
import/m4/chdir-long.m4 \
|
2018-09-19 05:05:47 +08:00
|
|
|
import/m4/close.m4 \
|
2018-09-03 05:11:46 +08:00
|
|
|
import/m4/closedir.m4 \
|
2018-09-19 05:05:47 +08:00
|
|
|
import/m4/codeset.m4 \
|
|
|
|
import/m4/configmake.m4 \
|
|
|
|
import/m4/d-ino.m4 \
|
2018-09-03 05:11:46 +08:00
|
|
|
import/m4/d-type.m4 \
|
2018-09-19 05:05:47 +08:00
|
|
|
import/m4/dirent_h.m4 \
|
|
|
|
import/m4/dirfd.m4 \
|
|
|
|
import/m4/dirname.m4 \
|
|
|
|
import/m4/double-slash-root.m4 \
|
|
|
|
import/m4/dup.m4 \
|
2018-09-03 05:11:46 +08:00
|
|
|
import/m4/dup2.m4 \
|
2018-09-19 05:05:47 +08:00
|
|
|
import/m4/eealloc.m4 \
|
|
|
|
import/m4/environ.m4 \
|
|
|
|
import/m4/errno_h.m4 \
|
|
|
|
import/m4/error.m4 \
|
2018-09-03 05:11:46 +08:00
|
|
|
import/m4/exponentd.m4 \
|
2018-09-19 05:05:47 +08:00
|
|
|
import/m4/exponentl.m4 \
|
|
|
|
import/m4/extensions.m4 \
|
|
|
|
import/m4/extern-inline.m4 \
|
|
|
|
import/m4/fchdir.m4 \
|
|
|
|
import/m4/fcntl-o.m4 \
|
|
|
|
import/m4/fcntl.m4 \
|
|
|
|
import/m4/fcntl_h.m4 \
|
|
|
|
import/m4/fdopendir.m4 \
|
|
|
|
import/m4/filenamecat.m4 \
|
|
|
|
import/m4/flexmember.m4 \
|
|
|
|
import/m4/float_h.m4 \
|
|
|
|
import/m4/fnmatch.m4 \
|
|
|
|
import/m4/fpieee.m4 \
|
|
|
|
import/m4/frexp.m4 \
|
|
|
|
import/m4/frexpl.m4 \
|
|
|
|
import/m4/fstat.m4 \
|
|
|
|
import/m4/fstatat.m4 \
|
|
|
|
import/m4/getcwd-abort-bug.m4 \
|
|
|
|
import/m4/getcwd-path-max.m4 \
|
2018-09-03 05:11:46 +08:00
|
|
|
import/m4/getcwd.m4 \
|
2018-09-19 05:05:47 +08:00
|
|
|
import/m4/getdtablesize.m4 \
|
|
|
|
import/m4/getlogin_r.m4 \
|
|
|
|
import/m4/getprogname.m4 \
|
|
|
|
import/m4/gettimeofday.m4 \
|
|
|
|
import/m4/glibc21.m4 \
|
|
|
|
import/m4/glob.m4 \
|
|
|
|
import/m4/gnulib-cache.m4 \
|
|
|
|
import/m4/gnulib-common.m4 \
|
|
|
|
import/m4/gnulib-comp.m4 \
|
|
|
|
import/m4/gnulib-tool.m4 \
|
|
|
|
import/m4/hard-locale.m4 \
|
|
|
|
import/m4/include_next.m4 \
|
2018-09-19 05:05:47 +08:00
|
|
|
import/m4/inet_ntop.m4 \
|
2018-09-19 05:05:47 +08:00
|
|
|
import/m4/inttypes-pri.m4 \
|
|
|
|
import/m4/inttypes.m4 \
|
|
|
|
import/m4/isnand.m4 \
|
|
|
|
import/m4/isnanl.m4 \
|
|
|
|
import/m4/largefile.m4 \
|
|
|
|
import/m4/limits-h.m4 \
|
|
|
|
import/m4/localcharset.m4 \
|
|
|
|
import/m4/locale-fr.m4 \
|
|
|
|
import/m4/locale-ja.m4 \
|
2018-09-03 05:11:46 +08:00
|
|
|
import/m4/locale-zh.m4 \
|
2018-09-19 05:05:47 +08:00
|
|
|
import/m4/longlong.m4 \
|
|
|
|
import/m4/lstat.m4 \
|
|
|
|
import/m4/malloc.m4 \
|
|
|
|
import/m4/malloca.m4 \
|
|
|
|
import/m4/math_h.m4 \
|
|
|
|
import/m4/mbrtowc.m4 \
|
|
|
|
import/m4/mbsinit.m4 \
|
|
|
|
import/m4/mbsrtowcs.m4 \
|
|
|
|
import/m4/mbstate_t.m4 \
|
|
|
|
import/m4/memchr.m4 \
|
|
|
|
import/m4/memmem.m4 \
|
|
|
|
import/m4/mempcpy.m4 \
|
2018-09-03 05:11:46 +08:00
|
|
|
import/m4/memrchr.m4 \
|
2018-09-19 05:05:47 +08:00
|
|
|
import/m4/mkdir.m4 \
|
Import mkdtemp gnulib module, fix mingw build
Building with mingw currently fails:
CXX unittests/mkdir-recursive-selftests.o
/home/emaisin/src/binutils-gdb/gdb/unittests/mkdir-recursive-selftests.c: In function ‘void selftests::mkdir_recursive::test()’:
/home/emaisin/src/binutils-gdb/gdb/unittests/mkdir-recursive-selftests.c:49:20: error: ‘mkdtemp’ was not declared in this scope
if (mkdtemp (base) == NULL)
^
Commit
e418a61a67a ("Move mkdir_recursive to common/filestuff.c")
moved this code, but also removed the HAVE_MKDTEMP guard which prevented
the mkdtemp call to be compiled on mingw.
We can either put back the HAVE_MKDTEMP ifdef, or import the gnulib
mkdtemp module, which provides the function for mingw. Since the
mkdir_recursive is susceptible to be used on mingw at some point, I
think it would be nice to have it tested on mingw, so I did the latter.
Once built, I tested it on Windows (copied the resulting gdb.exe on a
Windows machine, ran it, and ran "maint selftest mkdir_recursive"). It
failed, because the temporary directory is hardcoded to "/tmp/...". I
therefore added and used a new get_standard_temp_dir function, which
returns an appropriate temporary directory for the host platform.
gdb/ChangeLog:
* common/pathstuff.c (get_standard_temp_dir): New.
* common/pathstuff.h (get_standard_temp_dir): New.
* config.in: Re-generate.
* configure: Re-generate.
* configure.ac: Don't check for mkdtemp.
* gnulib/aclocal-m4-deps.mk: Re-generate.
* gnulib/aclocal.m4: Re-generate.
* gnulib/config.in: Re-generate.
* gnulib/configure: Re-generate.
* gnulib/import/Makefile.am: Re-generate.
* gnulib/import/Makefile.in: Re-generate.
* gnulib/import/m4/gnulib-cache.m4: Re-generate.
* gnulib/import/m4/gnulib-comp.m4: Re-generate.
* gnulib/import/m4/mkdtemp.m4: New file.
* gnulib/import/mkdtemp.c: New file.
* gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES):
Add mkdtemp module.
* unittests/mkdir-recursive-selftests.c (test): Use
get_standard_temp_dir.
(_initialize_mkdir_recursive_selftests): Remove HAVE_MKDTEMP
ifdef.
* compile/compile.c (get_compile_file_tempdir): Likewise.
2018-11-02 03:40:43 +08:00
|
|
|
import/m4/mkdtemp.m4 \
|
Use mkostemp, not mkstemp
I noticed that gdb could leak file descriptors coming from mkstemp.
This patch fixes the problem by importing the gnulib mkostemp instead,
and then changing gdb to pass O_CLOEXEC.
A small gnulib patch was needed. This has already been accepted
upstream.
gdb/ChangeLog
2018-10-27 Tom Tromey <tom@tromey.com>
* unittests/scoped_mmap-selftests.c (test_normal): Use
gdb_mkostemp_cloexec.
* unittests/scoped_fd-selftests.c (test_destroy, test_release):
Use gdb_mkostemp_cloexec.
* gnulib/aclocal-m4-deps.mk, gnulib/aclocal.m4,
gnulib/config.in, gnulib/configure,
gnulib/import/Makefile.am, gnulib/import/Makefile.in,
gnulib/import/m4/gnulib-cache.m4,
gnulib/import/m4/gnulib-comp.m4: Update.
* gnulib/import/m4/mkostemp.m4: New file.
* gnulib/import/m4/mkstemp.m4: Remove.
* gnulib/import/mkostemp.c: New file.
* gnulib/import/mkstemp.m4: Remove.
* gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Remove
mkstemp, add mkostemp. Apply new patch.
* gnulib/import/stdlib.in.h: Apply patch.
* gnulib/patches/0002-mkostemp-mkostemps-Fix-compilation-error-in-C-mode-o.patch:
New file.
* dwarf-index-write.c (write_psymtabs_to_index): Use
gdb_mkostemp_cloexec.
* common/filestuff.h (gdb_mkostemp_cloexec): New function.
2018-09-21 06:04:04 +08:00
|
|
|
import/m4/mkostemp.m4 \
|
2018-09-19 05:05:47 +08:00
|
|
|
import/m4/mmap-anon.m4 \
|
|
|
|
import/m4/mode_t.m4 \
|
|
|
|
import/m4/msvc-inval.m4 \
|
|
|
|
import/m4/msvc-nothrow.m4 \
|
|
|
|
import/m4/multiarch.m4 \
|
2018-09-19 05:05:47 +08:00
|
|
|
import/m4/netinet_in_h.m4 \
|
2018-09-19 05:05:47 +08:00
|
|
|
import/m4/nocrash.m4 \
|
|
|
|
import/m4/off_t.m4 \
|
2018-09-03 05:11:46 +08:00
|
|
|
import/m4/onceonly.m4 \
|
2018-09-19 05:05:47 +08:00
|
|
|
import/m4/open.m4 \
|
|
|
|
import/m4/openat.m4 \
|
|
|
|
import/m4/opendir.m4 \
|
2018-09-03 05:11:46 +08:00
|
|
|
import/m4/pathmax.m4 \
|
2018-09-19 05:05:47 +08:00
|
|
|
import/m4/rawmemchr.m4 \
|
|
|
|
import/m4/readdir.m4 \
|
|
|
|
import/m4/readlink.m4 \
|
|
|
|
import/m4/realloc.m4 \
|
2018-09-03 05:11:46 +08:00
|
|
|
import/m4/rename.m4 \
|
2018-09-19 05:05:47 +08:00
|
|
|
import/m4/rewinddir.m4 \
|
2018-09-03 05:11:46 +08:00
|
|
|
import/m4/rmdir.m4 \
|
|
|
|
import/m4/save-cwd.m4 \
|
2018-09-19 05:05:47 +08:00
|
|
|
import/m4/secure_getenv.m4 \
|
|
|
|
import/m4/setenv.m4 \
|
|
|
|
import/m4/signal_h.m4 \
|
2018-09-19 05:05:47 +08:00
|
|
|
import/m4/socklen.m4 \
|
|
|
|
import/m4/sockpfaf.m4 \
|
2018-09-19 05:05:47 +08:00
|
|
|
import/m4/ssize_t.m4 \
|
2018-09-03 05:11:46 +08:00
|
|
|
import/m4/stat.m4 \
|
2018-09-19 05:05:47 +08:00
|
|
|
import/m4/stdalign.m4 \
|
2018-09-03 05:11:46 +08:00
|
|
|
import/m4/stdbool.m4 \
|
2018-09-19 05:05:47 +08:00
|
|
|
import/m4/stddef_h.m4 \
|
|
|
|
import/m4/stdint.m4 \
|
|
|
|
import/m4/stdio_h.m4 \
|
|
|
|
import/m4/stdlib_h.m4 \
|
|
|
|
import/m4/strchrnul.m4 \
|
2018-09-03 05:11:46 +08:00
|
|
|
import/m4/strdup.m4 \
|
2018-09-19 05:05:47 +08:00
|
|
|
import/m4/strerror.m4 \
|
|
|
|
import/m4/string_h.m4 \
|
|
|
|
import/m4/strstr.m4 \
|
|
|
|
import/m4/strtok_r.m4 \
|
2018-09-03 05:11:46 +08:00
|
|
|
import/m4/sys_socket_h.m4 \
|
2018-09-19 05:05:47 +08:00
|
|
|
import/m4/sys_stat_h.m4 \
|
2018-09-03 05:11:46 +08:00
|
|
|
import/m4/sys_time_h.m4 \
|
2018-09-19 05:05:47 +08:00
|
|
|
import/m4/sys_types_h.m4 \
|
2018-09-19 05:05:47 +08:00
|
|
|
import/m4/sys_uio_h.m4 \
|
2018-09-03 05:11:46 +08:00
|
|
|
import/m4/tempname.m4 \
|
2018-09-19 05:05:47 +08:00
|
|
|
import/m4/time_h.m4 \
|
|
|
|
import/m4/unistd-safer.m4 \
|
|
|
|
import/m4/unistd_h.m4 \
|
|
|
|
import/m4/warn-on-use.m4 \
|
|
|
|
import/m4/wchar_h.m4 \
|
|
|
|
import/m4/wchar_t.m4 \
|
|
|
|
import/m4/wctype_h.m4 \
|
|
|
|
import/m4/wint_t.m4
|