Allow GuiFocusView to also focus on memmap,symbols and threads

This commit is contained in:
torusrxxx 2024-08-17 15:20:47 +08:00
parent bd3c2a41ed
commit 32c886d916
No known key found for this signature in database
GPG Key ID: A795C73A0F1CFADD
4 changed files with 10 additions and 0 deletions

View File

@ -879,6 +879,12 @@ void* Bridge::processMessage(GUIMSG type, void* param1, void* param2)
case GUI_MEMMAP:
emit focusMemmap();
break;
case GUI_SYMMOD:
emit focusSymmod();
break;
case GUI_THREADS:
emit showThreads();
break;
default:
break;
}

View File

@ -165,6 +165,7 @@ signals:
void focusStack();
void focusGraph();
void focusMemmap();
void focusSymmod();
void updateWatch();
void loadGraph(BridgeCFGraphList* graph, duint addr);
void graphAt(duint addr);

View File

@ -103,6 +103,8 @@ MainWindow::MainWindow(QWidget* parent)
connect(Bridge::getBridge(), SIGNAL(symbolSelectModule(duint)), this, SLOT(displaySymbolWidget()));
connect(Bridge::getBridge(), SIGNAL(closeApplication()), this, SLOT(close()));
connect(Bridge::getBridge(), SIGNAL(showTraceBrowser()), this, SLOT(displayTraceWidget()));
connect(Bridge::getBridge(), SIGNAL(focusMemmap()), this, SLOT(displayMemMapWidget()));
connect(Bridge::getBridge(), SIGNAL(focusSymmod()), this, SLOT(displaySymbolWidget()));
// Setup menu API

View File

@ -238,6 +238,7 @@ SymbolView::SymbolView(QWidget* parent) : QWidget(parent), ui(new Ui::SymbolView
connect(Bridge::getBridge(), SIGNAL(clearLog()), this, SLOT(clearSymbolLogSlot()));
connect(Bridge::getBridge(), SIGNAL(clearSymbolLog()), this, SLOT(clearSymbolLogSlot()));
connect(Bridge::getBridge(), SIGNAL(selectionSymmodGet(SELECTIONDATA*)), this, SLOT(selectionGetSlot(SELECTIONDATA*)));
connect(Bridge::getBridge(), SIGNAL(focusSymmod()), mModuleList, SLOT(setFocus()));
connect(mModuleList->stdList(), SIGNAL(selectionChanged(duint)), this, SLOT(moduleSelectionChanged(duint)));
connect(mModuleList->stdSearchList(), SIGNAL(selectionChanged(duint)), this, SLOT(moduleSelectionChanged(duint)));
connect(mModuleList, SIGNAL(emptySearchResult()), this, SLOT(emptySearchResultSlot()));