1 /* Copyright (c) 2005-2019. The SimGrid Team.
2 * All rights reserved. */
4 #ifndef SIMGRIX_XBT_BACKTRACE_HPP
5 #define SIMGRIX_XBT_BACKTRACE_HPP
14 #include <xbt/backtrace.h>
19 /** Try to demangle a C++ name
21 * Return the origin string if this fails.
23 XBT_PUBLIC() std::unique_ptr<char, void(*)(void*)> demangle(const char* name);
25 /** Get the current backtrace */
26 XBT_PUBLIC(std::vector<xbt_backtrace_location_t>) backtrace();
28 /* Translate the backtrace in a human friendly form
30 * Try ro resolve symbols and source code location.
32 XBT_PUBLIC(std::vector<std::string>) resolveBacktrace(
33 xbt_backtrace_location_t const* loc, std::size_t count);