Preserve Documents debug info #965
Loading…
Reference in a new issue
No description provided.
Delete branch "preserveDocumentsUpstream"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Upstreaming the change from https://github.com/dotnet/cecil/pull/270.
Currently when writing PDBs, Document debug info is only preserved when referenced from a sequence point. It should be preserved always, because Documents don't necessarily correspond to any sequence points (for example, C# code that contains an interface definition with no implementation).
This will preserve the Document debug info always.
Fixes https://github.com/dotnet/runtime/issues/112049
Fixes https://github.com/dotnet/runtime/issues/111138
Fixes https://github.com/jbevain/cecil/issues/839
Thanks!