panic: restore printing of detailed stack backtraces on linux

pull/4006/head
Delyan Angelov 2020-03-13 05:32:44 +02:00 committed by GitHub
parent 0e68ca120e
commit 9bcb7d115f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions

View File

@ -119,7 +119,11 @@ fn print_backtrace_skipping_top_frames_linux(skipframes int) bool {
if output in ['??:0:', '??:?:'] {
output = ''
}
//println('${output:-46s} | ${addr:14s} | $beforeaddr') // QTODO
// See http://wiki.dwarfstd.org/index.php?title=Path_Discriminators
// NB: it is shortened here to just d. , just so that it fits, and so
// that the common error file:lineno: line format is enforced.
output = output.replace(' (discriminator', ': (d.')
println('${output:-46s} | ${addr:14s} | $beforeaddr')
}
// C.backtrace_symbols_fd(*voidptr(&buffer[skipframes]), nr_actual_frames, 1)
return true
@ -130,4 +134,3 @@ fn print_backtrace_skipping_top_frames_linux(skipframes int) bool {
}
return false
}