| ... | ... | @@ -1166,7 +1166,7 @@ pub fn commitDeclState( |
| 1166 | 1166 | .macho => { |
| 1167 | 1167 | const d_sym = self.bin_file.cast(File.MachO).?.getDebugSymbols().?; |
| 1168 | 1168 | const sect_index = d_sym.debug_line_section_index.?; |
| 1169 | | try d_sym.growSection(sect_index, needed_size); |
| 1169 | try d_sym.growSection(sect_index, needed_size, true); |
| 1170 | 1170 | const sect = d_sym.getSection(sect_index); |
| 1171 | 1171 | const file_pos = sect.offset + src_fn.off; |
| 1172 | 1172 | try pwriteDbgLineNops( |
| ... | ... | @@ -1414,7 +1414,7 @@ fn writeDeclDebugInfo(self: *Dwarf, atom: *Atom, dbg_info_buf: []const u8) !void |
| 1414 | 1414 | .macho => { |
| 1415 | 1415 | const d_sym = self.bin_file.cast(File.MachO).?.getDebugSymbols().?; |
| 1416 | 1416 | const sect_index = d_sym.debug_info_section_index.?; |
| 1417 | | try d_sym.growSection(sect_index, needed_size); |
| 1417 | try d_sym.growSection(sect_index, needed_size, true); |
| 1418 | 1418 | const sect = d_sym.getSection(sect_index); |
| 1419 | 1419 | const file_pos = sect.offset + atom.off; |
| 1420 | 1420 | try pwriteDbgInfoNops( |
| ... | ... | @@ -1697,7 +1697,7 @@ pub fn writeDbgAbbrev(self: *Dwarf) !void { |
| 1697 | 1697 | .macho => { |
| 1698 | 1698 | const d_sym = self.bin_file.cast(File.MachO).?.getDebugSymbols().?; |
| 1699 | 1699 | const sect_index = d_sym.debug_abbrev_section_index.?; |
| 1700 | | try d_sym.growSection(sect_index, needed_size); |
| 1700 | try d_sym.growSection(sect_index, needed_size, false); |
| 1701 | 1701 | const sect = d_sym.getSection(sect_index); |
| 1702 | 1702 | const file_pos = sect.offset + abbrev_offset; |
| 1703 | 1703 | try d_sym.file.pwriteAll(&abbrev_buf, file_pos); |
| ... | ... | @@ -2134,7 +2134,7 @@ pub fn writeDbgAranges(self: *Dwarf, addr: u64, size: u64) !void { |
| 2134 | 2134 | .macho => { |
| 2135 | 2135 | const d_sym = self.bin_file.cast(File.MachO).?.getDebugSymbols().?; |
| 2136 | 2136 | const sect_index = d_sym.debug_aranges_section_index.?; |
| 2137 | | try d_sym.growSection(sect_index, needed_size); |
| 2137 | try d_sym.growSection(sect_index, needed_size, false); |
| 2138 | 2138 | const sect = d_sym.getSection(sect_index); |
| 2139 | 2139 | const file_pos = sect.offset; |
| 2140 | 2140 | try d_sym.file.pwriteAll(di_buf.items, file_pos); |
| ... | ... | @@ -2301,7 +2301,7 @@ pub fn writeDbgLineHeader(self: *Dwarf, module: *Module) !void { |
| 2301 | 2301 | const d_sym = self.bin_file.cast(File.MachO).?.getDebugSymbols().?; |
| 2302 | 2302 | const sect_index = d_sym.debug_line_section_index.?; |
| 2303 | 2303 | const needed_size = @intCast(u32, d_sym.getSection(sect_index).size + delta); |
| 2304 | | try d_sym.growSection(sect_index, needed_size); |
| 2304 | try d_sym.growSection(sect_index, needed_size, true); |
| 2305 | 2305 | const file_pos = d_sym.getSection(sect_index).offset + src_fn.off; |
| 2306 | 2306 | |
| 2307 | 2307 | const amt = try d_sym.file.preadAll(buffer, file_pos); |