diff options
| author | Sahnvour <sahnvour@pm.me> | 2019-03-15 21:11:27 +0100 |
|---|---|---|
| committer | Sahnvour <sahnvour@pm.me> | 2019-03-16 15:34:14 +0100 |
| commit | 094d40fb1a816a02e9f193f856049cf50503fdc4 (patch) | |
| tree | 3a9da3e7b5ad54a6d61c0aeadc2101e1b4110c95 /std | |
| parent | 0d4a5c40bc97d65ede1923577b2ca9dac3a6c24f (diff) | |
| download | zig-094d40fb1a816a02e9f193f856049cf50503fdc4.tar.gz zig-094d40fb1a816a02e9f193f856049cf50503fdc4.zip | |
allow pdb modules to have no C13 data, this happens if the module is stripped
Diffstat (limited to 'std')
| -rw-r--r-- | std/debug.zig | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/std/debug.zig b/std/debug.zig index 0b5fc97f87..2cd6f697d9 100644 --- a/std/debug.zig +++ b/std/debug.zig @@ -565,11 +565,12 @@ fn populateModule(di: *DebugInfo, mod: *Module) !void { return; const allocator = getDebugInfoAllocator(); - if (mod.mod_info.C11ByteSize != 0) + // At most one can be non-zero. + if (mod.mod_info.C11ByteSize != 0 and mod.mod_info.C13ByteSize != 0) return error.InvalidDebugInfo; if (mod.mod_info.C13ByteSize == 0) - return error.MissingDebugInfo; + return; const modi = di.pdb.getStreamById(mod.mod_info.ModuleSymStream) orelse return error.MissingDebugInfo; |
