mirror of
https://github.com/rizinorg/cutter.git
synced 2025-01-30 16:25:04 +00:00
Use cmdRaw and cmdRawAt in DebugActions
This commit is contained in:
parent
b98c2671b3
commit
4f01d54443
@ -191,6 +191,7 @@ DebugActions::DebugActions(QToolBar *toolBar, MainWindow *main) :
|
|||||||
|
|
||||||
void DebugActions::setButtonVisibleIfMainExists()
|
void DebugActions::setButtonVisibleIfMainExists()
|
||||||
{
|
{
|
||||||
|
// Use cmd because cmdRaw would not handle multiple commands concatenated
|
||||||
int mainExists = Core()->cmd("f?sym.main; ??").toInt();
|
int mainExists = Core()->cmd("f?sym.main; ??").toInt();
|
||||||
// if main is not a flag we hide the continue until main button
|
// if main is not a flag we hide the continue until main button
|
||||||
if (!mainExists) {
|
if (!mainExists) {
|
||||||
@ -213,7 +214,7 @@ void DebugActions::showDebugWarning()
|
|||||||
|
|
||||||
void DebugActions::continueUntilMain()
|
void DebugActions::continueUntilMain()
|
||||||
{
|
{
|
||||||
QString mainAddr = Core()->cmd("?v sym.main");
|
QString mainAddr = Core()->cmdRaw("?v sym.main");
|
||||||
Core()->continueUntilDebug(mainAddr);
|
Core()->continueUntilDebug(mainAddr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user