diff options
| author | Jakub Konka <kubkon@jakubkonka.com> | 2022-03-05 17:54:29 +0100 |
|---|---|---|
| committer | Jakub Konka <kubkon@jakubkonka.com> | 2022-03-05 17:55:01 +0100 |
| commit | 9a027d9ee33277220b8a8a5eb3d4edd575083366 (patch) | |
| tree | 1400d902950c7ca5ea3a627a06806229880f4f61 /src | |
| parent | 0a9088bd0684a517961b35bff458962174099677 (diff) | |
| download | zig-9a027d9ee33277220b8a8a5eb3d4edd575083366.tar.gz zig-9a027d9ee33277220b8a8a5eb3d4edd575083366.zip | |
macho: fix incorrect line and pc advancement
Diffstat (limited to 'src')
| -rw-r--r-- | src/link/MachO/DebugSymbols.zig | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/link/MachO/DebugSymbols.zig b/src/link/MachO/DebugSymbols.zig index 024c1d1535..f9393476dc 100644 --- a/src/link/MachO/DebugSymbols.zig +++ b/src/link/MachO/DebugSymbols.zig @@ -1126,18 +1126,6 @@ pub fn commitDeclDebugInfo( mem.writeIntLittle(u32, ptr, @intCast(u32, text_block.size)); } - { - // Advance line and PC. - // TODO encapsulate logic in a helper function. - try dbg_line_buffer.append(DW.LNS.advance_pc); - try leb.writeULEB128(dbg_line_buffer.writer(), text_block.size); - - try dbg_line_buffer.append(DW.LNS.advance_line); - const func = decl.val.castTag(.function).?.data; - const line_off = @intCast(u28, func.rbrace_line - func.lbrace_line); - try leb.writeULEB128(dbg_line_buffer.writer(), line_off); - } - try dbg_line_buffer.appendSlice(&[_]u8{ DW.LNS.extended_op, 1, DW.LNE.end_sequence }); // Now we have the full contents and may allocate a region to store it. |
