| ... | @@ -1847,7 +1847,8 @@ pub fn genDebugLineHeader( | ... | @@ -1847,7 +1847,8 @@ pub fn genDebugLineHeader( |
| 1847 | for (unit.files.keys()) |zfi| { | 1847 | for (unit.files.keys()) |zfi| { |
| 1848 | const zf = zcu.fileByIndex(zfi); | 1848 | const zf = zcu.fileByIndex(zfi); |
| 1849 | try dwarf.strp(&dwarf.debug_line_str, dlh_nw, zf.sub_file_path); | 1849 | try dwarf.strp(&dwarf.debug_line_str, dlh_nw, zf.sub_file_path); |
| 1850 | const di = unit.dirs.getIndex(dwarf.getUnit(zf.mod.?)).?; | 1850 | const di = |
| | 1851 | if (zcu.alive_files.contains(zfi)) unit.dirs.getIndex(dwarf.getUnit(zf.mod.?)).? else 0; |
| 1851 | switch (directory_index_form) { | 1852 | switch (directory_index_form) { |
| 1852 | else => unreachable, | 1853 | else => unreachable, |
| 1853 | .data1 => try dlhw.writeByte(@intCast(di)), | 1854 | .data1 => try dlhw.writeByte(@intCast(di)), |