1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

builtin: change V's panic() to not segfault; use -d panics_break_into_debugger to override

This commit is contained in:
Delyan Angelov
2020-12-12 16:04:30 +02:00
parent 7e3e30aa9c
commit 03f644e099
2 changed files with 30 additions and 10 deletions

View File

@@ -131,7 +131,7 @@ fn print_backtrace_skipping_top_frames_linux(skipframes int) bool {
// 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.')
eprintln('${output:-46s} | ${addr:14s} | $beforeaddr')
eprintln('${output:-55s} | ${addr:14s} | $beforeaddr')
}
}
return true