Home » U++ TheIDE » U++ TheIDE: Compiling, Linking, Debugging of your packages » GDB/MINGW interface Bug fix
Re: GDB/MINGW interface Bug fix [message #44575 is a reply to message #44571] |
Fri, 03 April 2015 16:55 |
omari
Messages: 266 Registered: March 2010
|
Experienced Member |
|
|
Hi,
the first issue can be resolved in LocalProcess.cpp LocalProcess::Read2(), line 448 and 452 replacing "if" by "while" :
replace:
#ifdef PLATFORM_WIN32
LLOG("LocalProcess::Read");
bool was_running = IsRunning();
char buffer[1024];
dword n;
---> if(hOutputRead && PeekNamedPipe(hOutputRead, NULL, 0, NULL, &n, NULL) && n &&
ReadFile(hOutputRead, buffer, sizeof(buffer), &n, NULL) && n)
reso.Cat(buffer, n);
---> if(hErrorRead && PeekNamedPipe(hErrorRead, NULL, 0, NULL, &n, NULL) && n &&
ReadFile(hErrorRead, buffer, sizeof(buffer), &n, NULL) && n)
rese.Cat(buffer, n);
if(convertcharset) {
reso = FromOEMCharset(reso);
rese = FromOEMCharset(rese);
}
return reso.GetCount() || rese.GetCount() || was_running;
#endif
by
#ifdef PLATFORM_WIN32
LLOG("LocalProcess::Read");
bool was_running = IsRunning();
char buffer[1024];
dword n;
---> while(hOutputRead && PeekNamedPipe(hOutputRead, NULL, 0, NULL, &n, NULL) && n &&
ReadFile(hOutputRead, buffer, sizeof(buffer), &n, NULL) && n)
reso.Cat(buffer, n);
---> while(hErrorRead && PeekNamedPipe(hErrorRead, NULL, 0, NULL, &n, NULL) && n &&
ReadFile(hErrorRead, buffer, sizeof(buffer), &n, NULL) && n)
rese.Cat(buffer, n);
if(convertcharset) {
reso = FromOEMCharset(reso);
rese = FromOEMCharset(rese);
}
return reso.GetCount() || rese.GetCount() || was_running;
#endif
regards
omari.
|
|
|
Goto Forum:
Current Time: Mon May 06 19:04:47 CEST 2024
Total time taken to generate the page: 0.02518 seconds
|