Commit 9f6e0091 authored by hjk's avatar hjk

debugger: compile fix on linux

parent baab8976
...@@ -1402,12 +1402,13 @@ unsigned CdbEngine::examineStopReason(const QByteArray &messageIn, ...@@ -1402,12 +1402,13 @@ unsigned CdbEngine::examineStopReason(const QByteArray &messageIn,
if (reason == "exception") { if (reason == "exception") {
WinException exception; WinException exception;
exception.fromGdbMI(stopReason); exception.fromGdbMI(stopReason);
QString description;
#ifdef Q_OS_WIN #ifdef Q_OS_WIN
// It is possible to hit on a startup trap while stepping (if something // It is possible to hit on a startup trap while stepping (if something
// pulls DLLs. Avoid showing a 'stopped' Message box. // pulls DLLs. Avoid showing a 'stopped' Message box.
if (exception.exceptionCode == winExceptionStartupCompleteTrap) if (exception.exceptionCode == winExceptionStartupCompleteTrap)
return StopNotifyStop; return StopNotifyStop;
const QString description = exception.toString(); description = exception.toString();
// WOW 64 breakpoint: just report in log and continue // WOW 64 breakpoint: just report in log and continue
if (exception.exceptionCode == winExceptionWX86Breakpoint) { if (exception.exceptionCode == winExceptionWX86Breakpoint) {
*message = description; *message = description;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment