| ... | ... | @@ -1133,7 +1133,7 @@ pub fn initDeclState(self: *Dwarf, mod: *Module, decl_index: InternPool.DeclInde |
| 1133 | 1133 | }); |
| 1134 | 1134 | // This is the "relocatable" vaddr, corresponding to `code_buffer` index `0`. |
| 1135 | 1135 | assert(dbg_line_vaddr_reloc_index == dbg_line_buffer.items.len); |
| 1136 | | dbg_line_buffer.items.len += ptr_width_bytes; |
| 1136 | dbg_line_buffer.writer().writeByteNTimes(0, ptr_width_bytes) catch unreachable; |
| 1137 | 1137 | |
| 1138 | 1138 | dbg_line_buffer.appendAssumeCapacity(DW.LNS.advance_line); |
| 1139 | 1139 | // This is the "relocatable" relative line offset from the previous function's end curly |
| ... | ... | @@ -1171,12 +1171,12 @@ pub fn initDeclState(self: *Dwarf, mod: *Module, decl_index: InternPool.DeclInde |
| 1171 | 1171 | // "relocations" and have to be in this fixed place so that functions can be |
| 1172 | 1172 | // moved in virtual address space. |
| 1173 | 1173 | assert(dbg_info_low_pc_reloc_index == dbg_info_buffer.items.len); |
| 1174 | | dbg_info_buffer.items.len += ptr_width_bytes; // DW.AT.low_pc, DW.FORM.addr |
| 1174 | dbg_info_buffer.writer().writeByteNTimes(0, ptr_width_bytes) catch unreachable; // DW.AT.low_pc, DW.FORM.addr |
| 1175 | 1175 | assert(self.getRelocDbgInfoSubprogramHighPC() == dbg_info_buffer.items.len); |
| 1176 | | dbg_info_buffer.items.len += 4; // DW.AT.high_pc, DW.FORM.data4 |
| 1176 | dbg_info_buffer.writer().writeByteNTimes(0, 4) catch unreachable; // DW.AT.high_pc, DW.FORM.data4 |
| 1177 | 1177 | if (fn_ret_has_bits) { |
| 1178 | 1178 | try decl_state.addTypeRelocGlobal(di_atom_index, fn_ret_type, @intCast(dbg_info_buffer.items.len)); |
| 1179 | | dbg_info_buffer.items.len += 4; // DW.AT.type, DW.FORM.ref4 |
| 1179 | dbg_info_buffer.writer().writeByteNTimes(0, 4) catch unreachable; // DW.AT.type, DW.FORM.ref4 |
| 1180 | 1180 | } |
| 1181 | 1181 | dbg_info_buffer.appendSliceAssumeCapacity( |
| 1182 | 1182 | decl_name_slice[0 .. decl_name_slice.len + 1], |