| ... | @@ -62,7 +62,8 @@ pub const SymbolIterator = struct { | ... | @@ -62,7 +62,8 @@ pub const SymbolIterator = struct { |
| 62 | const pdb = if (di.pdb) |*pdb| pdb else unreachable; | 62 | const pdb = if (di.pdb) |*pdb| pdb else unreachable; |
| 63 | | 63 | |
| 64 | // Get the next inlinee if it exists | 64 | // Get the next inlinee if it exists |
| 65 | if (info.inlinees.next(info.module)) |site| { | 65 | while (info.inlinees.next(info.module)) |site| { |
| | 66 | const parent: *align(1) const std.pdb.RecordPrefix = @ptrCast(&info.module.symbols[site.parent - @sizeOf(u16) * 2]); |
| 66 | if (pdb.getInlineeInfo(info.module, site.inlinee) catch null) |loc| { | 67 | if (pdb.getInlineeInfo(info.module, site.inlinee) catch null) |loc| { |
| 67 | if (info.proc_sym) |proc_sym| { | 68 | if (info.proc_sym) |proc_sym| { |
| 68 | const offset_in_func = info.addr - proc_sym.code_offset; | 69 | const offset_in_func = info.addr - proc_sym.code_offset; |