From 65bcdfdec8f2cf3815377aea26a514a87e9a02ae Mon Sep 17 00:00:00 2001 From: Jason Imison Date: Sat, 28 Jul 2018 02:01:18 +0100 Subject: [PATCH] Treat pinvokes like abstract methods for debugging (#5404) We need a row to be recorded in the MethodDebugInformation table. Fixes #4637 --- src/absil/ilwrite.fs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/absil/ilwrite.fs b/src/absil/ilwrite.fs index 37b85145a..d28348bf8 100644 --- a/src/absil/ilwrite.fs +++ b/src/absil/ilwrite.fs @@ -2526,7 +2526,8 @@ let GenMethodDefAsRow cenv env midx (md: ILMethodDef) = SequencePoints=seqpoints } cenv.AddCode code addr - | MethodBody.Abstract -> + | MethodBody.Abstract + | MethodBody.PInvoke _ -> // Now record the PDB record for this method - we write this out later. if cenv.generatePdb then cenv.pdbinfo.Add -- GitLab