Fix warning about missing debug infos in linux-vdso.so.N
authorMilian Wolff <mail@milianw.de>
Mon, 17 Nov 2014 16:16:45 +0000 (17:16 +0100)
committerMilian Wolff <mail@milianw.de>
Mon, 17 Nov 2014 16:16:45 +0000 (17:16 +0100)
heaptrack_interpret.cpp

index b922673..510744c 100644 (file)
@@ -31,6 +31,7 @@
 #include <algorithm>
 
 #include <cxxabi.h>
+#include <boost/algorithm/string/predicate.hpp>
 
 #include "libbacktrace/backtrace.h"
 
@@ -70,7 +71,12 @@ struct Module
         , addressStart(addressStart)
         , addressEnd(addressEnd)
         , isExe(isExe)
+        , backtraceState(nullptr)
     {
+        if (boost::algorithm::starts_with(fileName, "linux-vdso.so")) {
+            return;
+        }
+
         backtraceState = backtrace_create_state(fileName.c_str(), /* we are single threaded, so: not thread safe */ false,
                                                 [] (void *data, const char *msg, int errnum) {
                                                     const Module* module = reinterpret_cast<Module*>(data);