| 1071 | } |
| 1072 | |
| 1073 | void WinDebugger::GetStdHandles(BfpFile** outStdIn, BfpFile** outStdOut, BfpFile** outStdErr) |
| 1074 | { |
| 1075 | AutoCrit autoCrit(mDebugManager->mCritSect); |
| 1076 | |
| 1077 | if ((outStdIn != NULL) && (IsHandleValid(mStdInputPipe))) |
| 1078 | { |
| 1079 | *outStdIn = BfpFile_GetFromHandle((intptr)mStdInputPipe, NULL); |
| 1080 | mStdInputPipe = 0; |
| 1081 | } |
| 1082 | |
| 1083 | if ((outStdOut != NULL) && (IsHandleValid(mStdOutputPipe))) |
| 1084 | { |
| 1085 | *outStdOut = BfpFile_GetFromHandle((intptr)mStdOutputPipe, NULL); |
| 1086 | mStdOutputPipe = 0; |
| 1087 | } |
| 1088 | |
| 1089 | if ((outStdErr != NULL) && (IsHandleValid(mStdErrorPipe))) |
| 1090 | { |
| 1091 | *outStdErr = BfpFile_GetFromHandle((intptr)mStdErrorPipe, NULL); |
| 1092 | mStdErrorPipe = 0; |
| 1093 | } |
| 1094 | } |
| 1095 | |
| 1096 | void WinDebugger::Run() |
| 1097 | { |
no test coverage detected