Skip to content

Commit

Permalink
fix portable PDBs for anon records (dotnet#7099)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsyme authored and KevinRansom committed Jul 12, 2019
1 parent 274ffb1 commit bd4e095
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/absil/ilwritepdb.fs
Original file line number Diff line number Diff line change
Expand Up @@ -403,12 +403,17 @@ let generatePortablePdb (embedAllSource: bool) (embedSourceList: string list) (s
if i < 1 || offsetDelta > 0 then
builder.WriteCompressedInteger offsetDelta

// Hidden-sequence-point-record
if startLine = 0xfeefee || endLine = 0xfeefee || (startColumn = 0 && endColumn = 0)
// Check for hidden-sequence-point-record
if startLine = 0xfeefee ||
endLine = 0xfeefee ||
(startColumn = 0 && endColumn = 0) ||
((endLine - startLine) = 0 && (endColumn - startColumn) = 0)
then
// Hidden-sequence-point-record
builder.WriteCompressedInteger 0
builder.WriteCompressedInteger 0
else // Non-hidden-sequence-point-record
else
// Non-hidden-sequence-point-record
let deltaLines = endLine - startLine // lines
builder.WriteCompressedInteger deltaLines

Expand Down

0 comments on commit bd4e095

Please sign in to comment.