KDevelop Mingw64 - patches
Artur Bać
artur at ebasoft.com.pl
Sun Mar 4 16:59:13 UTC 2012
for interested people:
in gdb sources windows-nat.c at line 2179 (gdb7) there is code for
working with namedpipe created in kdevelop before debugging starts.
SECURITY_ATTRIBUTES sa;
sa.nLength = sizeof(sa);
sa.lpSecurityDescriptor = 0;
sa.bInheritHandle = TRUE;
tty = CreateFileA (inferior_io_terminal, GENERIC_READ | GENERIC_WRITE,
0, &sa, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, 0);
if (tty == INVALID_HANDLE_VALUE)
warning (_("Warning: Failed to open TTY %s, error %#x."),
inferior_io_terminal, (unsigned) GetLastError ());
else
{
si.hStdInput = tty;
si.hStdOutput = tty;
si.hStdError = tty;
si.dwFlags |= STARTF_USESTDHANDLES;
}
More information about the KDevelop-devel
mailing list