mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 19:16:40 +01:00
Add separator around stacktraces in scan-log
This commit is contained in:
parent
2ee5082b06
commit
5ddb88724e
3 changed files with 15 additions and 10 deletions
|
|
@ -135,16 +135,18 @@ static LONG WINAPI
|
|||
crash_handler (EXCEPTION_POINTERS* exceptioninfo)
|
||||
{
|
||||
// TODO consider DrMingw if HAVE_DRMINGW
|
||||
fprintf (stderr, "Error: %x\n", exceptioninfo->ExceptionRecord->ExceptionCode);
|
||||
PBD::stacktrace (cerr, 15, 2);
|
||||
printf ("Error: %x\n ---8<---\n", exceptioninfo->ExceptionRecord->ExceptionCode);
|
||||
PBD::stacktrace (std::cout, 15, 2);
|
||||
printf (" --->8---\n");
|
||||
return EXCEPTION_CONTINUE_SEARCH;
|
||||
}
|
||||
#else
|
||||
static void
|
||||
sig_handler (int sig)
|
||||
{
|
||||
fprintf (stderr, "Error: signal %d\n", sig);
|
||||
PBD::stacktrace (cerr, 15, 2);
|
||||
printf ("Error: signal %d\n ---8<---\n", sig);
|
||||
PBD::stacktrace (std::cout, 15, 2);
|
||||
printf (" --->8---\n");
|
||||
::exit (EXIT_FAILURE);
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue