Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
finish objectifying the backtraces
[simgrid.git] / include / xbt / backtrace.hpp
index 55712c9..99b3cb1 100644 (file)
@@ -37,21 +37,16 @@ class BacktraceImpl;
  */
 class Backtrace {
 public:
-  BacktraceImpl* impl_;
+  BacktraceImpl* impl_ = nullptr;
   Backtrace();
   Backtrace(const Backtrace& bt);
   ~Backtrace();
+  /** @brief Translate the backtrace in a human friendly form, unmangled with source code locations. */
+  std::string const resolve() const;
+  /** @brief Display the resolved backtrace on stderr */
+  void display() const;
 };
 
-/* Translate the backtrace in a human friendly form
- *
- *  Try resolve symbols and source code location.
- */
-XBT_PUBLIC std::vector<std::string> resolve_backtrace(const Backtrace& bt);
 }
 }
-
-/** @brief Display a previously captured backtrace */
-XBT_PUBLIC void xbt_backtrace_display(const simgrid::xbt::Backtrace& bt);
-
 #endif