1
0
Fork 0

GUI: change symbol menu

This commit is contained in:
mrexodia 2017-08-07 20:06:11 +02:00
parent 7ab339fa3b
commit 192b35acde
No known key found for this signature in database
GPG Key ID: FC89E0AAA0C1AAD8
2 changed files with 1 additions and 11 deletions

View File

@ -528,15 +528,11 @@ void CPUDisassembly::setupRightClickContextMenu()
analysisMenu->addMenu(encodeTypeMenu);
mMenuBuilder->addMenu(makeMenu(DIcon("analysis.png"), tr("Analysis")), analysisMenu);
MenuBuilder* downloadSymbolsMenu = new MenuBuilder(this);
downloadSymbolsMenu->addAction(makeShortcutAction(DIcon("pdb.png"), tr("&Current module"), SLOT(downloadCurrentSymbolsSlot()), "ActionDownloadSymbol"), [this](QMenu*)
mMenuBuilder->addAction(makeShortcutAction(DIcon("pdb.png"), tr("Download Symbols for This Module"), SLOT(downloadCurrentSymbolsSlot()), "ActionDownloadSymbol"), [this](QMenu*)
{
char module[MAX_MODULE_SIZE] = "";
return DbgGetModuleAt(rvaToVa(getInitialSelection()), module);
});
downloadSymbolsMenu->addAction(makeShortcutAction(DIcon("pdb.png"), tr("&All modules"), SLOT(downloadAllSymbolsSlot()), "ActionDownloadAllSymbol"));
mMenuBuilder->addMenu(makeMenu(DIcon("pdb.png"), tr("Download Symbols")), downloadSymbolsMenu);
mMenuBuilder->addSeparator();
@ -2152,8 +2148,3 @@ void CPUDisassembly::downloadCurrentSymbolsSlot()
if(DbgGetModuleAt(rvaToVa(getInitialSelection()), module))
DbgCmdExec(QString("symdownload \"%0\"").arg(module).toUtf8().constData());
}
void CPUDisassembly::downloadAllSymbolsSlot()
{
DbgCmdExec("symdownload");
}

View File

@ -119,7 +119,6 @@ public slots:
void copyTokenValueSlot();
void followInMemoryMapSlot();
void downloadCurrentSymbolsSlot();
void downloadAllSymbolsSlot();
protected:
void paintEvent(QPaintEvent* event);