Skip to content

Commit

Permalink
Fix debug lazy loaded assemblies when webcil is enabled (#96825)
Browse files Browse the repository at this point in the history
Co-authored-by: Thays Grazia <thaystg@gmail.com>
  • Loading branch information
github-actions[bot] and thaystg authored Jan 13, 2024
1 parent fe8a9d0 commit 95a332e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/mono/mono/component/mini-wasm-debugger.c
Original file line number Diff line number Diff line change
Expand Up @@ -215,11 +215,12 @@ assembly_loaded (MonoProfiler *prof, MonoAssembly *assembly)
MonoPPDBFile *ppdb = handle->ppdb;
if (ppdb && !mono_ppdb_is_embedded (ppdb)) { //if it's an embedded pdb we don't need to send pdb extrated to DebuggerProxy.
pdb_image = mono_ppdb_get_image (ppdb);
mono_wasm_asm_loaded (assembly_image->assembly_name, assembly_image->raw_data, assembly_image->raw_data_len, pdb_image->raw_data, pdb_image->raw_data_len);
mono_wasm_asm_loaded (assembly_image->assembly_name, assembly_image->storage->raw_data, assembly_image->storage->raw_data_len, pdb_image->raw_data, pdb_image->raw_data_len);
return;
}
}
mono_wasm_asm_loaded (assembly_image->assembly_name, assembly_image->raw_data, assembly_image->raw_data_len, NULL, 0);

mono_wasm_asm_loaded (assembly_image->assembly_name, assembly_image->storage->raw_data, assembly_image->storage->raw_data_len, NULL, 0);
}
}

Expand Down

0 comments on commit 95a332e

Please sign in to comment.