| ... | ... | @@ -179,9 +179,7 @@ pub fn writeCurrentStackTrace(out_stream: var, allocator: &mem.Allocator, |
| 179 | 179 | } |
| 180 | 180 | |
| 181 | 181 | fn printSourceAtAddress(debug_info: &ElfStackTrace, out_stream: var, address: usize) !void { |
| 182 | | // TODO we really should be able to convert @sizeOf(usize) * 2 to a string literal |
| 183 | | // at compile time. I'll call it issue #313 |
| 184 | | const ptr_hex = if (@sizeOf(usize) == 4) "0x{x8}" else "0x{x16}"; |
| 182 | const ptr_hex = "0x{x}"; |
| 185 | 183 | |
| 186 | 184 | switch (builtin.os) { |
| 187 | 185 | builtin.Os.windows => return error.UnsupportedDebugInfo, |