1
0
Fork 0

WIP: some minor improvements to tracing errors

This commit is contained in:
Duncan Ogilvie 2021-10-25 12:23:49 +02:00
parent f444626b45
commit 28bb79c8be
3 changed files with 5 additions and 5 deletions

View File

@ -106,7 +106,7 @@ bool cbDebugInit(int argc, char* argv[])
case PeArch::DotnetAnyCpu:
dputs(QT_TRANSLATE_NOOP("DBG", "Use x64dbg to debug this file!"));
#endif //_WIN64
return false;
//return false;
default:
break;
}
@ -232,7 +232,7 @@ bool cbDebugAttach(int argc, char* argv[])
#else
dputs(QT_TRANSLATE_NOOP("DBG", "Use x64dbg to debug this process!"));
#endif // _WIN64
return false;
//return false;
}
if(!GetFileNameFromProcessHandle(hProcess, szDebuggeePath))
{

View File

@ -2810,7 +2810,7 @@ static void debugLoopFunction(INIT_STRUCT* init)
#else
dputs(QT_TRANSLATE_NOOP("DBG", "Use x64dbg to debug this process!"));
#endif // _WIN64
return;
//return;
}
//set script variables

View File

@ -432,7 +432,7 @@ static bool readBlock(QFile & traceFile)
return false;
}
else
throw std::wstring(L"Unsupported block type");
throw std::wstring(L"Unsupported block type " + std::to_wstring(traceFile.pos()));
return false;
}
@ -481,7 +481,7 @@ void TraceFileParser::run()
}
catch(const std::wstring & errReason)
{
//MessageBox(0, errReason.c_str(), L"debug", MB_ICONERROR);
GuiAddLogMessage((QString::fromStdWString(errReason) + "\n").toUtf8().constData());
that->error = true;
}
catch(std::bad_alloc &)