From: Christoph Egger Date: Thu, 15 May 2014 11:41:58 +0000 (+0200) Subject: only try to disassemble function symbols X-Git-Tag: v0.1~220 X-Git-Url: https://git.siccegge.de//index.cgi?p=frida%2Ffrida.git;a=commitdiff_plain;h=e3865050db9758a751d813a2661e5870a81ffc86 only try to disassemble function symbols --- diff --git a/src/Binary.cxx b/src/Binary.cxx index f4e00a3..a659d5c 100644 --- a/src/Binary.cxx +++ b/src/Binary.cxx @@ -181,8 +181,12 @@ namespace qtlldb { std::vector result; for_each(symbols.begin(), symbols.end(), [&](const std::pair& 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; }