mirror of
https://github.com/rizinorg/cutter.git
synced 2025-02-07 07:22:15 +00:00
Look for sym.main instead of main 'cause latter is not rebasing in PIEs
This commit is contained in:
parent
9970028914
commit
9e9ad353c6
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user