Skip to content

Commit

Permalink
[wasm][debugger] DebugDirectoryEntryType = Reproducible means that ha…
Browse files Browse the repository at this point in the history
…s debug information (#38869)

Considering DebugDirectoryEntryType = Reproducible as an assembly that has debug information.

Fixes mono/mono#20075

Co-authored-by: thaystg <[email protected]>
  • Loading branch information
monojenkins and thaystg authored Jul 8, 2020
1 parent 454eca2 commit 707f4e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/mono/mono/metadata/debug-internals.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ typedef struct

typedef enum {
DEBUG_DIR_ENTRY_CODEVIEW = 2,
DEBUG_DIR_REPRODUCIBLE = 16,
DEBUG_DIR_ENTRY_PPDB = 17,
DEBUG_DIR_PDB_CHECKSUM = 19
} DebugDirectoryEntryType;
Expand Down
3 changes: 1 addition & 2 deletions src/mono/mono/metadata/image.c
Original file line number Diff line number Diff line change
Expand Up @@ -1038,8 +1038,7 @@ mono_has_pdb_checksum (char *raw_data, uint32_t raw_data_len)
debug_dir.major_version = read16(data + 8);
debug_dir.minor_version = read16(data + 10);
debug_dir.type = read32(data + 12);
printf("debug_dir.type - %d\n", debug_dir.type);
if (debug_dir.type == DEBUG_DIR_PDB_CHECKSUM)
if (debug_dir.type == DEBUG_DIR_PDB_CHECKSUM || debug_dir.type == DEBUG_DIR_REPRODUCIBLE)
return TRUE;
}
}
Expand Down

0 comments on commit 707f4e4

Please sign in to comment.