Fix Cygwin compilation after target_ops C++ conversion.
After f6ac5f3d
"Convert struct target_ops to C++", we need to explicitly use
the global namespace when calling ::close() from windows_nat_target methods,
as that object has a close() method.
gdb/ChangeLog:
2018-07-14 Jon Turney <jon.turney@dronecode.org.uk>
* windows-nat.c (windows_nat_target::create_inferior): Update to
call close() in global namespace.
This commit is contained in:
parent
1f75763aa1
commit
6af79d7b5a
|
@ -1,3 +1,8 @@
|
||||||
|
2018-07-14 Jon Turney <jon.turney@dronecode.org.uk>
|
||||||
|
|
||||||
|
* windows-nat.c (windows_nat_target::create_inferior): Update to
|
||||||
|
call close() in global namespace.
|
||||||
|
|
||||||
2018-07-26 Tom Tromey <tom@tromey.com>
|
2018-07-26 Tom Tromey <tom@tromey.com>
|
||||||
|
|
||||||
* dwarf-index-write.c (add_address_entry): Don't add objfile
|
* dwarf-index-write.c (add_address_entry): Don't add objfile
|
||||||
|
|
|
@ -2681,13 +2681,13 @@ windows_nat_target::create_inferior (const char *exec_file,
|
||||||
|
|
||||||
if (tty >= 0)
|
if (tty >= 0)
|
||||||
{
|
{
|
||||||
close (tty);
|
::close (tty);
|
||||||
dup2 (ostdin, 0);
|
dup2 (ostdin, 0);
|
||||||
dup2 (ostdout, 1);
|
dup2 (ostdout, 1);
|
||||||
dup2 (ostderr, 2);
|
dup2 (ostderr, 2);
|
||||||
close (ostdin);
|
::close (ostdin);
|
||||||
close (ostdout);
|
::close (ostdout);
|
||||||
close (ostderr);
|
::close (ostderr);
|
||||||
}
|
}
|
||||||
#else /* !__CYGWIN__ */
|
#else /* !__CYGWIN__ */
|
||||||
allargs_len = strlen (allargs);
|
allargs_len = strlen (allargs);
|
||||||
|
|
Loading…
Reference in New Issue