debugger: Slightly improve compile fix for linux.

Reviewed-by: Friedemann Kleint
This commit is contained in:
Christian Kamm
2011-01-12 14:21:44 +01:00
parent 9f6e0091b8
commit 49655d622d

View File

@@ -1402,13 +1402,12 @@ unsigned CdbEngine::examineStopReason(const QByteArray &messageIn,
if (reason == "exception") {
WinException exception;
exception.fromGdbMI(stopReason);
QString description;
QString description = exception.toString();
#ifdef Q_OS_WIN
// It is possible to hit on a startup trap while stepping (if something
// pulls DLLs. Avoid showing a 'stopped' Message box.
if (exception.exceptionCode == winExceptionStartupCompleteTrap)
return StopNotifyStop;
description = exception.toString();
// WOW 64 breakpoint: just report in log and continue
if (exception.exceptionCode == winExceptionWX86Breakpoint) {
*message = description;