X-Git-Url: https://git.siccegge.de//index.cgi?p=frida%2Ffrida.git;a=blobdiff_plain;f=src%2Fgui%2FMainwindow.cxx;h=fb713fc57d3b4ca55c8ef9ab4dc286abfe3035a9;hp=f91957b4235a5eab6964cc3a8e2e25c0944cb12a;hb=ad0c8e3809d00c7fb458c6c0803e572c171a8c8f;hpb=ce2200d137c1877102e87e816e1aad04bf12034b diff --git a/src/gui/Mainwindow.cxx b/src/gui/Mainwindow.cxx index f91957b..fb713fc 100644 --- a/src/gui/Mainwindow.cxx +++ b/src/gui/Mainwindow.cxx @@ -63,7 +63,7 @@ void Mainwindow::openBinary(const std::string& filename) { if (filename != "") { disassembler.reset(new LLVMDisassembler(filename)); disassembler->forEachFunction([&](uint64_t address, Function* fun) { - populateSymbolInformation(fun->getName()); + populateSymbolInformation(fun); }); // curBin = new Binary(fileName.toStdString()); @@ -77,7 +77,7 @@ void Mainwindow::openBinary(const std::string& filename) { } } -void Mainwindow::populateSymbolInformation(const std::string& sym) { +void Mainwindow::populateSymbolInformation(Function* fun) { QTabWidget * w = new QTabWidget(); // Listing @@ -124,6 +124,6 @@ void Mainwindow::populateSymbolInformation(const std::string& sym) { QGraphicsView * view = new QGraphicsView(scene); w->addTab(view, "CFG"); - listWidget->addItem(sym.c_str()); + listWidget->addItem(fun->getName().c_str()); stackedWidget->addWidget(w); }