diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2019-01-01 18:36:12 -0500 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2019-01-01 18:36:12 -0500 |
| commit | 036a49e97d0bc556ece08562c9dd3c75879598cf (patch) | |
| tree | 9707943a5c063fe196bd091b801c5c626f3f0eb8 /std/debug | |
| parent | c0e391e94ab34cb2fcfd85c5c9f93aed8ec1ba79 (diff) | |
| parent | 6df8e4bca73309f2e340dbfa9031f1bb16a73bcc (diff) | |
| download | zig-036a49e97d0bc556ece08562c9dd3c75879598cf.tar.gz zig-036a49e97d0bc556ece08562c9dd3c75879598cf.zip | |
Merge remote-tracking branch 'origin/master' into llvm8
Diffstat (limited to 'std/debug')
| -rw-r--r-- | std/debug/index.zig | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/std/debug/index.zig b/std/debug/index.zig index 73c6ea7b56..3050d15c59 100644 --- a/std/debug/index.zig +++ b/std/debug/index.zig @@ -264,7 +264,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 => return printSourceAtAddressLinux(debug_info, out_stream, address, tty_color), + builtin.Os.linux, builtin.Os.freebsd => 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 => return openSelfDebugInfoLinux(allocator), + builtin.Os.linux, builtin.Os.freebsd => return openSelfDebugInfoLinux(allocator), builtin.Os.macosx, builtin.Os.ios => return openSelfDebugInfoMacOs(allocator), builtin.Os.windows => return openSelfDebugInfoWindows(allocator), else => return error.UnsupportedOperatingSystem, @@ -1135,14 +1135,13 @@ pub const DebugInfo = switch (builtin.os) { return self.ofiles.allocator; } }, - builtin.Os.windows => struct { + builtin.Os.uefi, builtin.Os.windows => struct { pdb: pdb.Pdb, coff: *coff.Coff, sect_contribs: []pdb.SectionContribEntry, modules: []Module, }, - builtin.Os.linux => DwarfInfo, - builtin.Os.freebsd => struct {}, + builtin.Os.linux, builtin.Os.freebsd => DwarfInfo, else => @compileError("Unsupported OS"), }; |
