Fix GUI exceptions with massive traceexecute
This commit is contained in:
parent
400964e876
commit
11c8f7e02a
|
@ -265,6 +265,8 @@ void TraceRecordManager::TraceExecuteRecord(const Zydis & newInstruction)
|
|||
// Don't try to resolve memory values for invalid/lea/nop instructions
|
||||
if(newInstruction.Success() && !newInstruction.IsNop() && newInstruction.GetId() != ZYDIS_MNEMONIC_LEA)
|
||||
{
|
||||
// This can happen when trace execute instruction is used, we need to fix that or something would go wrong with the GUI.
|
||||
newContext.registers.regcontext.cip = newInstruction.Address();
|
||||
DISASM_ARGTYPE argType;
|
||||
duint value;
|
||||
unsigned char memoryContent[memoryContentSize];
|
||||
|
|
|
@ -1331,7 +1331,7 @@ void TraceBrowser::parseFinishedSlot()
|
|||
{
|
||||
if(mTraceFile->isError())
|
||||
{
|
||||
SimpleErrorBox(this, tr("Error"), "Error when opening run trace file");
|
||||
SimpleErrorBox(this, tr("Error"), tr("Error when opening run trace file"));
|
||||
delete mTraceFile;
|
||||
mTraceFile = nullptr;
|
||||
setRowCount(0);
|
||||
|
|
Loading…
Reference in New Issue