From 78224e9aa04ba0d7504ed1fc5538c5369aeb1b64 Mon Sep 17 00:00:00 2001 From: Milian Wolff Date: Mon, 17 Nov 2014 17:16:45 +0100 Subject: [PATCH] Fix warning about missing debug infos in linux-vdso.so.N --- heaptrack_interpret.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/heaptrack_interpret.cpp b/heaptrack_interpret.cpp index b922673..510744c 100644 --- a/heaptrack_interpret.cpp +++ b/heaptrack_interpret.cpp @@ -31,6 +31,7 @@ #include #include +#include #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(data); -- 2.7.4