debug: Accept relative paths in mapWholeFile

This commit is contained in:
LemonBoy 2020-03-23 18:51:10 +01:00
parent 27344464ed
commit 336ed03f0f

View File

@ -1049,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());