-typedef std::vector<xbt_backtrace_location_t> Backtrace;
-
-/** Try to demangle a C++ name
- *
- * Return the origin string if this fails.
- */
-XBT_PUBLIC std::unique_ptr<char, void (*)(void*)> demangle(const char* name);
-
-/** Get the current backtrace */
-XBT_PUBLIC Backtrace backtrace();
+class Backtrace {
+public:
+ std::shared_ptr<BacktraceImpl> impl_;
+ Backtrace();
+ /** @brief Translate the backtrace in a human friendly form, unmangled with source code locations. */
+ std::string resolve() const;
+ /** @brief Display the resolved backtrace on stderr */
+ void display() const;
+};