mirror of
https://github.com/rizinorg/cutter.git
synced 2025-01-19 02:48:49 +00:00
Enable continue in emulation
This commit is contained in:
parent
cb173aa616
commit
ad9d3ccb5f
@ -964,7 +964,11 @@ void CutterCore::stopDebug()
|
||||
void CutterCore::continueDebug()
|
||||
{
|
||||
if (currentlyDebugging) {
|
||||
if (currentlyEmulating) {
|
||||
cmdEsil("aec");
|
||||
} else {
|
||||
cmd("dc");
|
||||
}
|
||||
emit registersChanged();
|
||||
emit refreshCodeViews();
|
||||
}
|
||||
|
@ -132,16 +132,16 @@ void MainWindow::initUI()
|
||||
DebugToolbar *debugToolbar = new DebugToolbar(this);
|
||||
ui->mainToolBar->addWidget(debugToolbar);
|
||||
// Debug menu
|
||||
// ui->menuDebug->addAction(debugToolbar->actionStart);
|
||||
ui->menuDebug->addAction(debugToolbar->actionStart);
|
||||
ui->menuDebug->addAction(debugToolbar->actionStartEmul);
|
||||
// ui->menuDebug->addAction(debugToolbar->actionAttach);
|
||||
ui->menuDebug->addAction(debugToolbar->actionAttach);
|
||||
ui->menuDebug->addSeparator();
|
||||
ui->menuDebug->addAction(debugToolbar->actionStep);
|
||||
ui->menuDebug->addAction(debugToolbar->actionStepOver);
|
||||
ui->menuDebug->addAction(debugToolbar->actionStepOut);
|
||||
ui->menuDebug->addSeparator();
|
||||
// ui->menuDebug->addAction(debugToolbar->actionContinue);
|
||||
// ui->menuDebug->addAction(debugToolbar->actionContinueUntilCall);
|
||||
ui->menuDebug->addAction(debugToolbar->actionContinue);
|
||||
ui->menuDebug->addAction(debugToolbar->actionContinueUntilCall);
|
||||
ui->menuDebug->addAction(debugToolbar->actionContinueUntilSyscall);
|
||||
|
||||
// Sepparator between undo/redo and goto lineEdit
|
||||
|
@ -299,9 +299,6 @@ void DisassemblyContextMenu::aboutToShowSlot()
|
||||
|
||||
// only show debug options if we are currently debugging
|
||||
debugMenu->menuAction()->setVisible(Core()->currentlyDebugging);
|
||||
// currently there are is no breakpoint support in ESIL so
|
||||
// we dont show the option in case we are emulating
|
||||
actionAddBreakpoint.setVisible(!Core()->currentlyEmulating);
|
||||
QString progCounterName = Core()->getRegisterName("PC");
|
||||
actionSetPC.setText("Set " + progCounterName + " here");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user