mirror of
https://github.com/ziglang/zig.git
synced 2026-01-20 22:35:24 +00:00
Merge pull request #4300 from LemonBoy/debug-windows
More debug fixes - This time Windows gets a treat
This commit is contained in:
commit
4591389497
@ -360,7 +360,7 @@ pub fn writeCurrentStackTraceWindows(
|
||||
return;
|
||||
} else 0;
|
||||
for (addrs[start_i..]) |addr| {
|
||||
try printSourceAtAddress(debug_info, out_stream, addr, tty_config);
|
||||
try printSourceAtAddress(debug_info, out_stream, addr - 1, tty_config);
|
||||
}
|
||||
}
|
||||
|
||||
@ -412,7 +412,7 @@ fn printSourceAtAddressWindows(
|
||||
if (prefix.RecordLen < 2)
|
||||
return error.InvalidDebugInfo;
|
||||
switch (prefix.RecordKind) {
|
||||
pdb.SymbolKind.S_LPROC32 => {
|
||||
.S_LPROC32, .S_GPROC32 => {
|
||||
const proc_sym = @ptrCast(*pdb.ProcSym, &mod.symbols[symbol_i + @sizeOf(pdb.RecordPrefix)]);
|
||||
const vaddr_start = coff_section.header.virtual_address + proc_sym.CodeOffset;
|
||||
const vaddr_end = vaddr_start + proc_sym.CodeSize;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user