mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-24 13:55:26 +00:00
* Fix naming of program counter in contextmenu
This commit is contained in:
parent
a37eae39d9
commit
d652241ec2
@ -117,8 +117,6 @@ DisassemblyContextMenu::DisassemblyContextMenu(QWidget *parent)
|
|||||||
SLOT(on_actionAddBreakpoint_triggered()));
|
SLOT(on_actionAddBreakpoint_triggered()));
|
||||||
actionContinueUntil.setText(tr("Continue until line"));
|
actionContinueUntil.setText(tr("Continue until line"));
|
||||||
debugMenu->addAction(&actionContinueUntil);
|
debugMenu->addAction(&actionContinueUntil);
|
||||||
QString progCounterName = Core()->getRegisterName("PC");
|
|
||||||
actionSetPC.setText("Set " + progCounterName + " here");
|
|
||||||
debugMenu->addAction(&actionSetPC);
|
debugMenu->addAction(&actionSetPC);
|
||||||
|
|
||||||
connect(&actionEditInstruction, SIGNAL(triggered(bool)), this,
|
connect(&actionEditInstruction, SIGNAL(triggered(bool)), this,
|
||||||
@ -240,6 +238,8 @@ void DisassemblyContextMenu::aboutToShowSlot()
|
|||||||
// currently there are is no breakpoint support in ESIL so
|
// currently there are is no breakpoint support in ESIL so
|
||||||
// we dont show the option in case we are emulating
|
// we dont show the option in case we are emulating
|
||||||
actionAddBreakpoint.setVisible(!Core()->currentlyEmulating);
|
actionAddBreakpoint.setVisible(!Core()->currentlyEmulating);
|
||||||
|
QString progCounterName = Core()->getRegisterName("PC");
|
||||||
|
actionSetPC.setText("Set " + progCounterName + " here");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user