aboutsummaryrefslogtreecommitdiff
path: root/lib/std/debug/Dwarf.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2024-08-01 14:18:16 -0700
committerAndrew Kelley <andrew@ziglang.org>2024-08-01 22:11:23 -0700
commit1ba6b56c817777c5f504a5975591da6de68dd361 (patch)
treeff62d373b92d99ab7a71456a55d136400033c135 /lib/std/debug/Dwarf.zig
parent2e26cf83cf06b6204a1ea300403e7cf19e1e91e8 (diff)
downloadzig-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.zig6
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,