| ... | ... | @@ -264,7 +264,7 @@ pub fn writeCurrentStackTraceWindows( |
| 264 | 264 | pub fn printSourceAtAddress(debug_info: *DebugInfo, out_stream: var, address: usize, tty_color: bool) !void { |
| 265 | 265 | switch (builtin.os) { |
| 266 | 266 | builtin.Os.macosx => return printSourceAtAddressMacOs(debug_info, out_stream, address, tty_color), |
| 267 | | builtin.Os.linux => return printSourceAtAddressLinux(debug_info, out_stream, address, tty_color), |
| 267 | builtin.Os.linux, builtin.Os.freebsd => return printSourceAtAddressLinux(debug_info, out_stream, address, tty_color), |
| 268 | 268 | builtin.Os.windows => return printSourceAtAddressWindows(debug_info, out_stream, address, tty_color), |
| 269 | 269 | else => return error.UnsupportedOperatingSystem, |
| 270 | 270 | } |
| ... | ... | @@ -717,7 +717,7 @@ pub const OpenSelfDebugInfoError = error{ |
| 717 | 717 | |
| 718 | 718 | pub fn openSelfDebugInfo(allocator: *mem.Allocator) !DebugInfo { |
| 719 | 719 | switch (builtin.os) { |
| 720 | | builtin.Os.linux => return openSelfDebugInfoLinux(allocator), |
| 720 | builtin.Os.linux, builtin.Os.freebsd => return openSelfDebugInfoLinux(allocator), |
| 721 | 721 | builtin.Os.macosx, builtin.Os.ios => return openSelfDebugInfoMacOs(allocator), |
| 722 | 722 | builtin.Os.windows => return openSelfDebugInfoWindows(allocator), |
| 723 | 723 | else => return error.UnsupportedOperatingSystem, |
| ... | ... | @@ -1141,8 +1141,7 @@ pub const DebugInfo = switch (builtin.os) { |
| 1141 | 1141 | sect_contribs: []pdb.SectionContribEntry, |
| 1142 | 1142 | modules: []Module, |
| 1143 | 1143 | }, |
| 1144 | | builtin.Os.linux => DwarfInfo, |
| 1145 | | builtin.Os.freebsd => struct {}, |
| 1144 | builtin.Os.linux, builtin.Os.freebsd => DwarfInfo, |
| 1146 | 1145 | else => @compileError("Unsupported OS"), |
| 1147 | 1146 | }; |
| 1148 | 1147 | |