authorgravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2022-08-23 10:29:09+02:00
committergravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2022-08-23 22:01:05+02:00
logf907f742823f277bf346b06a693e16074f9302f9
tree2e77ac1c67fb399bd0d464d9b2142ecddf0456af
parentcf9f6fd7f090b175858e7c0109215ddf0922655d

coff: fix compile errors in std.debug


1 files changed, 14 insertions(+), 3 deletions(-)

lib/std/debug.zig+14-3
......@@ -840,19 +840,30 @@ fn readCoffDebugInfo(allocator: mem.Allocator, coff_file: File) !ModuleDebugInfo
840840 const debug_info_data = di.coff.getSectionDataAlloc(".debug_info", allocator) catch null;
841841 const debug_abbrev_data = di.coff.getSectionDataAlloc(".debug_abbrev", allocator) catch null;
842842 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;
843844 const debug_line_data = di.coff.getSectionDataAlloc(".debug_line", allocator) catch null;
844845 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;
846852
847853 var dwarf = DW.DwarfInfo{
848854 .endian = native_endian,
849855 .debug_info = debug_info_data orelse return error.MissingDebugInfo,
850856 .debug_abbrev = debug_abbrev_data orelse return error.MissingDebugInfo,
851857 .debug_str = debug_str_data orelse return error.MissingDebugInfo,
852 .debug_str_offsets = null,
858 .debug_str_offsets = debug_str_offsets,
853859 .debug_line = debug_line_data orelse return error.MissingDebugInfo,
854860 .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,
856867 };
857868 try DW.openDwarfDebugInfo(&dwarf, allocator);
858869 di.debug_data = PdbOrDwarf{ .dwarf = dwarf };