aboutsummaryrefslogtreecommitdiff
path: root/lib/std/debug.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2019-11-30 18:37:00 -0500
committerAndrew Kelley <andrew@ziglang.org>2019-11-30 18:37:00 -0500
commit11b8d3ce9d7bc8e3ab16813fd5415c9d45dbb232 (patch)
tree879d454b8c77d8a9dfeb4044ab55f66e513e7810 /lib/std/debug.zig
parent85e1e3b95f1f1699a842a5e889d8987692a829a4 (diff)
parent2e7350140d4fbf9335e48693ccc4cba77d229c84 (diff)
downloadzig-11b8d3ce9d7bc8e3ab16813fd5415c9d45dbb232.tar.gz
zig-11b8d3ce9d7bc8e3ab16813fd5415c9d45dbb232.zip
Merge branch 'std.fs.File'
Diffstat (limited to 'lib/std/debug.zig')
-rw-r--r--lib/std/debug.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/debug.zig b/lib/std/debug.zig
index 6324c88d86..3c842f3ac1 100644
--- a/lib/std/debug.zig
+++ b/lib/std/debug.zig
@@ -1131,7 +1131,7 @@ fn openSelfDebugInfoMacOs(allocator: *mem.Allocator) !DebugInfo {
}
fn printLineFromFileAnyOs(out_stream: var, line_info: LineInfo) !void {
- var f = try File.openRead(line_info.file_name);
+ var f = try fs.cwd().openFile(line_info.file_name, .{});
defer f.close();
// TODO fstat and make sure that the file has the correct size
@@ -2089,7 +2089,7 @@ fn getLineNumberInfoMacOs(di: *DebugInfo, symbol: MachoSymbol, target_address: u
const ofile_path = mem.toSliceConst(u8, @ptrCast([*:0]const u8, di.strings.ptr + ofile.n_strx));
gop.kv.value = MachOFile{
- .bytes = try std.fs.Dir.cwd().readFileAllocAligned(
+ .bytes = try std.fs.cwd().readFileAllocAligned(
di.ofiles.allocator,
ofile_path,
maxInt(usize),