Look for sym.main instead of main 'cause latter is not rebasing in PIEs

This commit is contained in:
mandlebro 2019-01-15 21:37:02 +00:00 committed by Itay Cohen
parent 9970028914
commit 9e9ad353c6

View File

@ -158,7 +158,7 @@ DebugActions::DebugActions(QToolBar *toolBar, MainWindow *main) :
void DebugActions::setButtonVisibleIfMainExists() void DebugActions::setButtonVisibleIfMainExists()
{ {
int mainExists = Core()->cmd("f?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);
@ -168,7 +168,8 @@ void DebugActions::setButtonVisibleIfMainExists()
void DebugActions::continueUntilMain() void DebugActions::continueUntilMain()
{ {
Core()->continueUntilDebug("main"); QString mainAddr = Core()->cmd("?v sym.main");
Core()->continueUntilDebug(mainAddr);
} }
void DebugActions::attachProcessDialog() void DebugActions::attachProcessDialog()