]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Avoid "Invalid parameter passed to C runtime function" warning
authorEli Zaretskii <eliz@gnu.org>
Tue, 20 Nov 2018 16:49:43 +0000 (18:49 +0200)
committerEli Zaretskii <eliz@gnu.org>
Tue, 20 Nov 2018 16:49:43 +0000 (18:49 +0200)
commit970d89d8fdd84b31decaf3bd84e785aad057ea32
tree4aa3ef02a23ebb836035afafb77e81f738739d75
parentf92f9e8780f74c5084c59689f91d28b8a3471538
Avoid "Invalid parameter passed to C runtime function" warning

This warning was displayed by OutputDebugString on MinGW when
GDB was being debugged natively.

gdb/ChangeLog:

* common/filestuff.c (gdb_fopen_cloexec): Disable use of "e" mode
with 'fopen' also if O_CLOEXEC is equal to O_NOINHERIT, to cater
to MinGW fixed by Gnulib.
gdb/ChangeLog
gdb/common/filestuff.c