diff options
| author | Jakub Konka <kubkon@jakubkonka.com> | 2022-08-23 10:29:09 +0200 |
|---|---|---|
| committer | Jakub Konka <kubkon@jakubkonka.com> | 2022-08-23 22:01:05 +0200 |
| commit | f907f742823f277bf346b06a693e16074f9302f9 (patch) | |
| tree | 2e77ac1c67fb399bd0d464d9b2142ecddf0456af /lib/std/debug.zig | |
| parent | cf9f6fd7f090b175858e7c0109215ddf0922655d (diff) | |
| download | zig-f907f742823f277bf346b06a693e16074f9302f9.tar.gz zig-f907f742823f277bf346b06a693e16074f9302f9.zip | |
coff: fix compile errors in std.debug
Diffstat (limited to 'lib/std/debug.zig')
| -rw-r--r-- | lib/std/debug.zig | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/lib/std/debug.zig b/lib/std/debug.zig index 39dcfe72a6..201545c18d 100644 --- a/lib/std/debug.zig +++ b/lib/std/debug.zig @@ -840,19 +840,30 @@ fn readCoffDebugInfo(allocator: mem.Allocator, coff_file: File) !ModuleDebugInfo const debug_info_data = di.coff.getSectionDataAlloc(".debug_info", allocator) catch null; const debug_abbrev_data = di.coff.getSectionDataAlloc(".debug_abbrev", allocator) catch null; const debug_str_data = di.coff.getSectionDataAlloc(".debug_str", allocator) catch null; + const debug_str_offsets = di.coff.getSectionDataAlloc(".debug_str_offsets", allocator) catch null; const debug_line_data = di.coff.getSectionDataAlloc(".debug_line", allocator) catch null; const debug_line_str_data = di.coff.getSectionDataAlloc(".debug_line_str", allocator) catch null; - const debug_ranges_data = di.coff.getSectionDataAlloc(".debug_ranges", allocator) catch null; + const debug_ranges = di.coff.getSectionDataAlloc(".debug_ranges", allocator) catch null; + const debug_loclists = di.coff.getSectionDataAlloc(".debug_loclists", allocator) catch null; + const debug_rnglists = di.coff.getSectionDataAlloc(".debug_rnglists", allocator) catch null; + const debug_addr = di.coff.getSectionDataAlloc(".debug_addr", allocator) catch null; + const debug_names = di.coff.getSectionDataAlloc(".debug_names", allocator) catch null; + const debug_frame = di.coff.getSectionDataAlloc(".debug_frame", allocator) catch null; var dwarf = DW.DwarfInfo{ .endian = native_endian, .debug_info = debug_info_data orelse return error.MissingDebugInfo, .debug_abbrev = debug_abbrev_data orelse return error.MissingDebugInfo, .debug_str = debug_str_data orelse return error.MissingDebugInfo, - .debug_str_offsets = null, + .debug_str_offsets = debug_str_offsets, .debug_line = debug_line_data orelse return error.MissingDebugInfo, .debug_line_str = debug_line_str_data, - .debug_ranges = debug_ranges_data, + .debug_ranges = debug_ranges, + .debug_loclists = debug_loclists, + .debug_rnglists = debug_rnglists, + .debug_addr = debug_addr, + .debug_names = debug_names, + .debug_frame = debug_frame, }; try DW.openDwarfDebugInfo(&dwarf, allocator); di.debug_data = PdbOrDwarf{ .dwarf = dwarf }; |
