Skip to content

Commit 5ea0ac0

Browse files
nosamiKevinRansom
authored andcommitted
Treat pinvokes like abstract methods for debugging (#5404)
We need a row to be recorded in the MethodDebugInformation table. Fixes #4637
1 parent 796b895 commit 5ea0ac0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/absil/ilwrite.fs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2526,7 +2526,8 @@ let GenMethodDefAsRow cenv env midx (md: ILMethodDef) =
25262526
SequencePoints=seqpoints }
25272527
cenv.AddCode code
25282528
addr
2529-
| MethodBody.Abstract ->
2529+
| MethodBody.Abstract
2530+
| MethodBody.PInvoke _ ->
25302531
// Now record the PDB record for this method - we write this out later.
25312532
if cenv.generatePdb then
25322533
cenv.pdbinfo.Add

0 commit comments

Comments
 (0)