void xbt_backtrace_display(xbt_backtrace_location_t* loc, std::size_t count)
{
-#ifdef HAVE_BACKTRACE
std::vector<std::string> backtrace = simgrid::xbt::resolve_backtrace(loc, count);
if (backtrace.empty()) {
- fprintf(stderr, "(backtrace not set)\n");
+ fprintf(stderr, "(backtrace not set -- maybe unavailable on this architecture?)\n");
return;
}
fprintf(stderr, "Backtrace (displayed in process %s):\n", SIMIX_process_self_get_name());
startWith(s, "simgrid::xbt::MainFunction") /* main used with thread factory */)
break;
}
-#else
- XBT_ERROR("Cannot display backtrace when compiled without libunwind.");
-#endif
}
/** @brief show the backtrace of the current point (lovely while debugging) */
namespace simgrid {
namespace xbt {
+std::vector<std::string> resolve_backtrace(xbt_backtrace_location_t const* loc, std::size_t count)
+{
+ std::vector<std::string> result;
+ return result;
+}
std::vector<std::string> resolve_backtrace(xbt_backtrace_location_t const* loc, std::size_t count)
{