File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -547,6 +547,16 @@ void TraceBrowser::setupRightClickContextMenu()
547
547
#endif // _WIN64
548
548
addReg (ArchValue (" EIP" , " RIP" ), cip)
549
549
addReg (ArchValue (" EFLAGS" , " RFLAGS" ), eflags)
550
+ menu->addSeparator ();
551
+ menu->addAction (QString (" ThreadID: %1" ).arg (mTraceFile ->ThreadId (index)));
552
+ if (index + 1 < mTraceFile ->Length ())
553
+ {
554
+ menu->addAction (QString (" LastError: %1 -> %2" ).arg (ToPtrString (mTraceFile ->Registers (index).lastError .code )).arg (ToPtrString (mTraceFile ->Registers (index + 1 ).lastError .code )));
555
+ }
556
+ else
557
+ {
558
+ menu->addAction (QString (" LastError: %1" ).arg (ToPtrString (mTraceFile ->Registers (index).lastError .code )));
559
+ }
550
560
return true ;
551
561
});
552
562
mMenuBuilder ->addMenu (makeMenu (tr (" Information" )), infoMenu);
@@ -1305,7 +1315,11 @@ void TraceBrowser::followDisassemblySlot()
1305
1315
if (mTraceFile == nullptr || mTraceFile ->Progress () < 100 )
1306
1316
return ;
1307
1317
1308
- DbgCmdExec (QString (" dis " ).append (ToPtrString (mTraceFile ->Registers (getInitialSelection ()).regcontext .cip )).toUtf8 ().constData ());
1318
+ duint cip = mTraceFile ->Registers (getInitialSelection ()).regcontext .cip ;
1319
+ if (DbgMemIsValidReadPtr (cip))
1320
+ DbgCmdExec (QString (" dis " ).append (ToPtrString (cip)).toUtf8 ().constData ());
1321
+ else
1322
+ GuiAddStatusBarMessage (tr (" Cannot follow %1. Address is invalid.\n " ).arg (ToPtrString (cip)).toUtf8 ().constData ());
1309
1323
}
1310
1324
1311
1325
void TraceBrowser::searchConstantSlot ()
You can’t perform that action at this time.
0 commit comments