]> git.siccegge.de Git - frida/frida.git/commitdiff
only try to disassemble function symbols
authorChristoph Egger <siccegge@cs.fau.de>
Thu, 15 May 2014 11:41:58 +0000 (13:41 +0200)
committerChristoph Egger <siccegge@cs.fau.de>
Thu, 15 May 2014 11:44:03 +0000 (13:44 +0200)
src/Binary.cxx

index f4e00a3f33cff31bab55686594973a94e0590da3..a659d5c450a58905effaf526d94f676360ac4935 100644 (file)
@@ -181,8 +181,12 @@ namespace qtlldb {
         std::vector<std::string> result;
         for_each(symbols.begin(), symbols.end(), [&](const std::pair<std::string, SymbolRef>& i) {
                      bool contains;
-                     if (!error(r.containsSymbol(i.second, contains)) && contains)
-                         result.push_back(i.first);
+                                        SymbolRef::Type t;
+                     if (!error(r.containsSymbol(i.second, contains)) && contains) {
+                                                i.second.getType(t);
+                                                if (SymbolRef::ST_Function == t)
+                                                        result.push_back(i.first);
+                                        }
                  });
         return result;
     }