diff options
Diffstat (limited to 'src/plugins/debugger/shared/hostutils.cpp')
-rw-r--r-- | src/plugins/debugger/shared/hostutils.cpp | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/src/plugins/debugger/shared/hostutils.cpp b/src/plugins/debugger/shared/hostutils.cpp index 844f17c49c..17a5574432 100644 --- a/src/plugins/debugger/shared/hostutils.cpp +++ b/src/plugins/debugger/shared/hostutils.cpp @@ -82,11 +82,6 @@ bool winResumeThread(unsigned long dwThreadId, QString *errorMessage) return ok; } -unsigned long winGetCurrentProcessId() -{ - return GetCurrentProcessId(); -} - bool isWinProcessBeingDebugged(unsigned long pid) { HANDLE processHandle = OpenProcess(PROCESS_QUERY_INFORMATION, FALSE, pid); @@ -199,9 +194,8 @@ void formatWindowsException(unsigned long code, quint64 address, break; } str << ", flags=0x" << flags; - if (flags == EXCEPTION_NONCONTINUABLE) { + if (flags == EXCEPTION_NONCONTINUABLE) str << " (execution cannot be continued)"; - } str.setIntegerBase(10); } @@ -228,7 +222,16 @@ bool isFatalWinException(long code) return true; } -#endif // Q_OS_WIN +#else // Q_OS_WIN + +bool winResumeThread(unsigned long, QString *) { return false; } +bool isWinProcessBeingDebugged(unsigned long) { return false; } +void formatWindowsException(unsigned long , quint64, unsigned long, + quint64, quint64, QTextStream &) { } +bool isFatalWinException(long) { return false; } +bool isDebuggerWinException(unsigned long) { return false; } + +#endif // !Q_OS_WIN } // namespace Internal } // namespace Debugger |