diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2020-03-25 10:19:49 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-25 10:19:49 -0400 |
| commit | 3869e803318721134170ca8e90190cdfbadbe475 (patch) | |
| tree | 5d5282ad4be25d465275a93df202a61faed3b361 /lib/std/debug.zig | |
| parent | 778dbc17acce77588a46a27074ecb8b418786d94 (diff) | |
| parent | 3ccf99c0bd5a681c56c456d1606b5eccfcf31fb7 (diff) | |
| download | zig-3869e803318721134170ca8e90190cdfbadbe475.tar.gz zig-3869e803318721134170ca8e90190cdfbadbe475.zip | |
Merge pull request #4793 from LemonBoy/netbsd-forever
Netbsd forever
Diffstat (limited to 'lib/std/debug.zig')
| -rw-r--r-- | lib/std/debug.zig | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/std/debug.zig b/lib/std/debug.zig index 5600990924..94475515e7 100644 --- a/lib/std/debug.zig +++ b/lib/std/debug.zig @@ -654,6 +654,8 @@ pub fn openSelfDebugInfo(allocator: *mem.Allocator) anyerror!DebugInfo { switch (builtin.os.tag) { .linux, .freebsd, + .netbsd, + .dragonfly, .macosx, .windows, => return DebugInfo.init(allocator), @@ -1047,7 +1049,7 @@ const MachoSymbol = struct { fn mapWholeFile(path: []const u8) ![]align(mem.page_size) const u8 { noasync { - const file = try fs.openFileAbsolute(path, .{ .always_blocking = true }); + const file = try fs.cwd().openFile(path, .{ .always_blocking = true }); defer file.close(); const file_len = try math.cast(usize, try file.getEndPos()); @@ -1621,7 +1623,7 @@ pub const ModuleDebugInfo = switch (builtin.os.tag) { }; } }, - .linux, .freebsd => struct { + .linux, .netbsd, .freebsd, .dragonfly => struct { base_address: usize, dwarf: DW.DwarfInfo, mapped_memory: []const u8, |
