From e3865050db9758a751d813a2661e5870a81ffc86 Mon Sep 17 00:00:00 2001 From: Christoph Egger Date: Thu, 15 May 2014 13:41:58 +0200 Subject: [PATCH] only try to disassemble function symbols --- src/Binary.cxx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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; } -- 2.39.2