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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user