]> git.siccegge.de Git - frida/frida.git/blobdiff - src/gui/Mainwindow.cxx
Display entries for all functions
[frida/frida.git] / src / gui / Mainwindow.cxx
index fd0c24595da1bfe0efc675ac395970ccce764ece..f91957b4235a5eab6964cc3a8e2e25c0944cb12a 100644 (file)
@@ -36,7 +36,7 @@ Mainwindow::Mainwindow(const std::string& filename)
     connect(listWidget, SIGNAL(currentRowChanged(int)),
             stackedWidget, SLOT(setCurrentIndex(int)));
 
-    setWindowTitle(tr("Notepad"));
+    setWindowTitle(tr("FRIDA"));
 
        openBinary(filename);
 }
@@ -62,6 +62,10 @@ void Mainwindow::open() {
 void Mainwindow::openBinary(const std::string& filename) {
     if (filename != "") {
         disassembler.reset(new LLVMDisassembler(filename));
+               disassembler->forEachFunction([&](uint64_t address, Function* fun) {
+                               populateSymbolInformation(fun->getName());
+                       });
+
         // curBin = new Binary(fileName.toStdString());
 
         // std::vector<std::string> symbols = curBin->getSymbols();