diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2024-08-01 14:18:16 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2024-08-01 22:11:23 -0700 |
| commit | 1ba6b56c817777c5f504a5975591da6de68dd361 (patch) | |
| tree | ff62d373b92d99ab7a71456a55d136400033c135 /lib/std/debug/Dwarf.zig | |
| parent | 2e26cf83cf06b6204a1ea300403e7cf19e1e91e8 (diff) | |
| download | zig-1ba6b56c817777c5f504a5975591da6de68dd361.tar.gz zig-1ba6b56c817777c5f504a5975591da6de68dd361.zip | |
std.debug.Info: extract to separate file
Diffstat (limited to 'lib/std/debug/Dwarf.zig')
| -rw-r--r-- | lib/std/debug/Dwarf.zig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/std/debug/Dwarf.zig b/lib/std/debug/Dwarf.zig index f17fd737a1..353c097471 100644 --- a/lib/std/debug/Dwarf.zig +++ b/lib/std/debug/Dwarf.zig @@ -1353,7 +1353,7 @@ pub fn getLineNumberInfo( allocator: Allocator, compile_unit: CompileUnit, target_address: u64, -) !std.debug.LineInfo { +) !std.debug.Info.SourceLocation { const compile_unit_cwd = try compile_unit.die.getAttrString(di, AT.comp_dir, di.section(.debug_line_str), compile_unit); const line_info_offset = try compile_unit.die.getAttrSecOffset(AT.stmt_list); @@ -2084,7 +2084,7 @@ const LineNumberProgram = struct { self: *LineNumberProgram, allocator: Allocator, file_entries: []const FileEntry, - ) !?std.debug.LineInfo { + ) !?std.debug.Info.SourceLocation { if (self.prev_valid and self.target_address >= self.prev_address and self.target_address < self.address) @@ -2104,7 +2104,7 @@ const LineNumberProgram = struct { dir_name, file_entry.path, }); - return std.debug.LineInfo{ + return std.debug.Info.SourceLocation{ .line = if (self.prev_line >= 0) @as(u64, @intCast(self.prev_line)) else 0, .column = self.prev_column, .file_name = file_name, |
