| ... | ... | @@ -131,6 +131,7 @@ pub fn dumpStackTraceFromBase(bp: usize, ip: usize) void { |
| 131 | 131 | const tty_config = detectTTYConfig(); |
| 132 | 132 | printSourceAtAddress(debug_info, stderr, ip, tty_config) catch return; |
| 133 | 133 | const first_return_address = @intToPtr(*const usize, bp + @sizeOf(usize)).*; |
| 134 | if (first_return_address == 0) return; // The whole call stack may be optimized out |
| 134 | 135 | printSourceAtAddress(debug_info, stderr, first_return_address - 1, tty_config) catch return; |
| 135 | 136 | var it = StackIterator{ |
| 136 | 137 | .first_addr = null, |