std::cerr << "Caught SIGABRT." << std::endl;
- Utility::PrintStacktrace(std::cerr, 1);
+ StackTrace trace;
+ trace.Print(std::cerr, 1);
DisplayBugMessage();
}
void StackTrace::Initialize(void)
{
+#ifdef _WIN32
(void) SymSetOptions(SYMOPT_UNDNAME | SYMOPT_LOAD_LINES);
(void) SymInitialize(GetCurrentProcess(), NULL, TRUE);
+#endif /* _WIN32 */
}
/**
free(messages);
fp << std::endl;
-
- return true;
# else /* HAVE_BACKTRACE_SYMBOLS */
fp << "(not available)" << std::endl;
# endif /* HAVE_BACKTRACE_SYMBOLS */