From cff5358f60bac70728c9b738c8311e055e96d04a Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Mon, 1 May 2017 19:16:48 -0400 Subject: make debug safety stuff lazy --- std/debug.zig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'std/debug.zig') diff --git a/std/debug.zig b/std/debug.zig index af9bfe314c..47f38748d7 100644 --- a/std/debug.zig +++ b/std/debug.zig @@ -92,7 +92,8 @@ pub fn writeStackTrace(out_stream: &io.OutStream, allocator: &mem.Allocator, tty const ptr_hex = if (@sizeOf(usize) == 4) "0x{x8}" else "0x{x16}"; const compile_unit = findCompileUnit(st, return_address) ?? { - %return out_stream.print(DIM ++ ptr_hex ++ " in ??? (???)" ++ RESET ++ "\n\n\n", return_address); + %return out_stream.print("???:?:?: " ++ DIM ++ ptr_hex ++ " in ??? (???)" ++ RESET ++ "\n ???\n\n", + return_address); %return out_stream.flush(); continue; }; -- cgit v1.2.3