forked from qt-creator/qt-creator
Debugger: Remove #ifdef Q_OS_WIN from hostutils.
- Provide stubs for Non-Windows - Reduce #ifdefs, check Abi if possible. - Remove unused winGetCurrentProcessId(). Task-number: QTCREATORBUG-8141 Change-Id: I80558ca4e52e87c7371597ea07c091af08097b34 Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -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);
|
||||
@@ -228,7 +223,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
|
||||
|
||||
Reference in New Issue
Block a user