aboutsummaryrefslogtreecommitdiff
path: root/lib/std/pdb.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/pdb.zig
parent2e26cf83cf06b6204a1ea300403e7cf19e1e91e8 (diff)
downloadzig-1ba6b56c817777c5f504a5975591da6de68dd361.tar.gz
zig-1ba6b56c817777c5f504a5975591da6de68dd361.zip
std.debug.Info: extract to separate file
Diffstat (limited to 'lib/std/pdb.zig')
-rw-r--r--lib/std/pdb.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/std/pdb.zig b/lib/std/pdb.zig
index ece1cc63dc..c96eb81fa9 100644
--- a/lib/std/pdb.zig
+++ b/lib/std/pdb.zig
@@ -706,7 +706,7 @@ pub const Pdb = struct {
return null;
}
- pub fn getLineNumberInfo(self: *Pdb, module: *Module, address: u64) !debug.LineInfo {
+ pub fn getLineNumberInfo(self: *Pdb, module: *Module, address: u64) !debug.Info.SourceLocation {
std.debug.assert(module.populated);
const subsect_info = module.subsect_info;
@@ -731,7 +731,7 @@ pub const Pdb = struct {
if (address >= frag_vaddr_start and address < frag_vaddr_end) {
// There is an unknown number of LineBlockFragmentHeaders (and their accompanying line and column records)
- // from now on. We will iterate through them, and eventually find a LineInfo that we're interested in,
+ // from now on. We will iterate through them, and eventually find a SourceLocation that we're interested in,
// breaking out to :subsections. If not, we will make sure to not read anything outside of this subsection.
const subsection_end_index = sect_offset + subsect_hdr.Length;
@@ -778,7 +778,7 @@ pub const Pdb = struct {
const line_num_entry: *align(1) LineNumberEntry = @ptrCast(&subsect_info[found_line_index]);
const flags: *align(1) LineNumberEntry.Flags = @ptrCast(&line_num_entry.Flags);
- return debug.LineInfo{
+ return debug.Info.SourceLocation{
.file_name = source_file_name,
.line = flags.Start,
.column = column,