| ... | @@ -840,19 +840,30 @@ fn readCoffDebugInfo(allocator: mem.Allocator, coff_file: File) !ModuleDebugInfo | ... | @@ -840,19 +840,30 @@ fn readCoffDebugInfo(allocator: mem.Allocator, coff_file: File) !ModuleDebugInfo |
| 840 | const debug_info_data = di.coff.getSectionDataAlloc(".debug_info", allocator) catch null; | 840 | const debug_info_data = di.coff.getSectionDataAlloc(".debug_info", allocator) catch null; |
| 841 | const debug_abbrev_data = di.coff.getSectionDataAlloc(".debug_abbrev", allocator) catch null; | 841 | const debug_abbrev_data = di.coff.getSectionDataAlloc(".debug_abbrev", allocator) catch null; |
| 842 | const debug_str_data = di.coff.getSectionDataAlloc(".debug_str", allocator) catch null; | 842 | const debug_str_data = di.coff.getSectionDataAlloc(".debug_str", allocator) catch null; |
| | 843 | const debug_str_offsets = di.coff.getSectionDataAlloc(".debug_str_offsets", allocator) catch null; |
| 843 | const debug_line_data = di.coff.getSectionDataAlloc(".debug_line", allocator) catch null; | 844 | const debug_line_data = di.coff.getSectionDataAlloc(".debug_line", allocator) catch null; |
| 844 | const debug_line_str_data = di.coff.getSectionDataAlloc(".debug_line_str", allocator) catch null; | 845 | const debug_line_str_data = di.coff.getSectionDataAlloc(".debug_line_str", allocator) catch null; |
| 845 | const debug_ranges_data = di.coff.getSectionDataAlloc(".debug_ranges", allocator) catch null; | 846 | const debug_ranges = di.coff.getSectionDataAlloc(".debug_ranges", allocator) catch null; |
| | 847 | const debug_loclists = di.coff.getSectionDataAlloc(".debug_loclists", allocator) catch null; |
| | 848 | const debug_rnglists = di.coff.getSectionDataAlloc(".debug_rnglists", allocator) catch null; |
| | 849 | const debug_addr = di.coff.getSectionDataAlloc(".debug_addr", allocator) catch null; |
| | 850 | const debug_names = di.coff.getSectionDataAlloc(".debug_names", allocator) catch null; |
| | 851 | const debug_frame = di.coff.getSectionDataAlloc(".debug_frame", allocator) catch null; |
| 846 | | 852 | |
| 847 | var dwarf = DW.DwarfInfo{ | 853 | var dwarf = DW.DwarfInfo{ |
| 848 | .endian = native_endian, | 854 | .endian = native_endian, |
| 849 | .debug_info = debug_info_data orelse return error.MissingDebugInfo, | 855 | .debug_info = debug_info_data orelse return error.MissingDebugInfo, |
| 850 | .debug_abbrev = debug_abbrev_data orelse return error.MissingDebugInfo, | 856 | .debug_abbrev = debug_abbrev_data orelse return error.MissingDebugInfo, |
| 851 | .debug_str = debug_str_data orelse return error.MissingDebugInfo, | 857 | .debug_str = debug_str_data orelse return error.MissingDebugInfo, |
| 852 | .debug_str_offsets = null, | 858 | .debug_str_offsets = debug_str_offsets, |
| 853 | .debug_line = debug_line_data orelse return error.MissingDebugInfo, | 859 | .debug_line = debug_line_data orelse return error.MissingDebugInfo, |
| 854 | .debug_line_str = debug_line_str_data, | 860 | .debug_line_str = debug_line_str_data, |
| 855 | .debug_ranges = debug_ranges_data, | 861 | .debug_ranges = debug_ranges, |
| | 862 | .debug_loclists = debug_loclists, |
| | 863 | .debug_rnglists = debug_rnglists, |
| | 864 | .debug_addr = debug_addr, |
| | 865 | .debug_names = debug_names, |
| | 866 | .debug_frame = debug_frame, |
| 856 | }; | 867 | }; |
| 857 | try DW.openDwarfDebugInfo(&dwarf, allocator); | 868 | try DW.openDwarfDebugInfo(&dwarf, allocator); |
| 858 | di.debug_data = PdbOrDwarf{ .dwarf = dwarf }; | 869 | di.debug_data = PdbOrDwarf{ .dwarf = dwarf }; |