diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2019-02-18 00:10:31 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-02-18 00:10:31 -0500 |
| commit | 3e586264e5295be87f13c34904ff9b61a95ded16 (patch) | |
| tree | 4f20f7fab5d7a4f754c65c6034240a5396b98a24 /std/debug | |
| parent | 39207fa1d46ccaf55de80e1afd89fbccca6a73e7 (diff) | |
| parent | b93405c24bd3c58f68a272f32fe764a994e7aae6 (diff) | |
| download | zig-3e586264e5295be87f13c34904ff9b61a95ded16.tar.gz zig-3e586264e5295be87f13c34904ff9b61a95ded16.zip | |
Merge pull request #1972 from coypoop/netbsd
Add NetBSD support
Diffstat (limited to 'std/debug')
| -rw-r--r-- | std/debug/index.zig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/std/debug/index.zig b/std/debug/index.zig index 7e5be9acef..b8ea7e7f84 100644 --- a/std/debug/index.zig +++ b/std/debug/index.zig @@ -240,7 +240,7 @@ pub fn writeCurrentStackTraceWindows( pub fn printSourceAtAddress(debug_info: *DebugInfo, out_stream: var, address: usize, tty_color: bool) !void { switch (builtin.os) { builtin.Os.macosx => return printSourceAtAddressMacOs(debug_info, out_stream, address, tty_color), - builtin.Os.linux, builtin.Os.freebsd => return printSourceAtAddressLinux(debug_info, out_stream, address, tty_color), + builtin.Os.linux, builtin.Os.freebsd, builtin.Os.netbsd => return printSourceAtAddressLinux(debug_info, out_stream, address, tty_color), builtin.Os.windows => return printSourceAtAddressWindows(debug_info, out_stream, address, tty_color), else => return error.UnsupportedOperatingSystem, } @@ -717,7 +717,7 @@ pub const OpenSelfDebugInfoError = error{ pub fn openSelfDebugInfo(allocator: *mem.Allocator) !DebugInfo { switch (builtin.os) { - builtin.Os.linux, builtin.Os.freebsd => return openSelfDebugInfoLinux(allocator), + builtin.Os.linux, builtin.Os.freebsd, builtin.Os.netbsd => return openSelfDebugInfoLinux(allocator), builtin.Os.macosx, builtin.Os.ios => return openSelfDebugInfoMacOs(allocator), builtin.Os.windows => return openSelfDebugInfoWindows(allocator), else => return error.UnsupportedOperatingSystem, @@ -1141,7 +1141,7 @@ pub const DebugInfo = switch (builtin.os) { sect_contribs: []pdb.SectionContribEntry, modules: []Module, }, - builtin.Os.linux, builtin.Os.freebsd => DwarfInfo, + builtin.Os.linux, builtin.Os.freebsd, builtin.Os.netbsd => DwarfInfo, else => @compileError("Unsupported OS"), }; |
