"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/widgets/DebugActions.cpp" between
cutter-1.10.2.tar.gz and cutter-1.10.3.tar.gz

About: cutter is a Qt and C++ GUI for radare2 reverse engineering framework.

DebugActions.cpp  (cutter-1.10.2):DebugActions.cpp  (cutter-1.10.3)
skipping to change at line 194 skipping to change at line 194
Core()->continueDebug(); Core()->continueDebug();
} }
}); });
connect(Config(), &Configuration::interfaceThemeChanged, this, &DebugActions ::chooseThemeIcons); connect(Config(), &Configuration::interfaceThemeChanged, this, &DebugActions ::chooseThemeIcons);
chooseThemeIcons(); chooseThemeIcons();
} }
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) {
actionContinueUntilMain->setVisible(false); actionContinueUntilMain->setVisible(false);
continueUntilButton->setDefaultAction(actionContinueUntilCall); continueUntilButton->setDefaultAction(actionContinueUntilCall);
} }
} }
void DebugActions::showDebugWarning() void DebugActions::showDebugWarning()
{ {
skipping to change at line 216 skipping to change at line 217
QMessageBox msgBox; QMessageBox msgBox;
msgBox.setTextInteractionFlags(Qt::TextSelectableByMouse | Qt::LinksAcce ssibleByMouse); msgBox.setTextInteractionFlags(Qt::TextSelectableByMouse | Qt::LinksAcce ssibleByMouse);
msgBox.setText(tr("Debug is currently in beta.\n") + msgBox.setText(tr("Debug is currently in beta.\n") +
tr("If you encounter any problems or have suggestions, please submit an issue to https://github.com/radareorg/cutter/issues")); tr("If you encounter any problems or have suggestions, please submit an issue to https://github.com/radareorg/cutter/issues"));
msgBox.exec(); msgBox.exec();
} }
} }
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);
} }
void DebugActions::attachRemoteDebugger() void DebugActions::attachRemoteDebugger()
{ {
QString stopAttachLabel = tr("Detach from process"); QString stopAttachLabel = tr("Detach from process");
// Hide unwanted buttons // Hide unwanted buttons
setAllActionsVisible(true); setAllActionsVisible(true);
actionStart->setVisible(false); actionStart->setVisible(false);
actionStartRemote->setVisible(false); actionStartRemote->setVisible(false);
 End of changes. 2 change blocks. 
1 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)