[hot_reload] various post-Preview 1 fixes (#65973)
authorAleksey Kliger (λgeek) <alklig@microsoft.com>
Tue, 1 Mar 2022 21:17:38 +0000 (16:17 -0500)
committerGitHub <noreply@github.com>
Tue, 1 Mar 2022 21:17:38 +0000 (16:17 -0500)
commit2a00ad862b4d43521297ab4f1d4946fd1e718b90
tree67150bc870ca83efbc8cdb3971d26e26714c9af5
parent002647fce853a359a826461c06f5f530e2bb939e
[hot_reload] various post-Preview 1 fixes (#65973)

* [debug] Handle gen-seq-points, and hot reload updates without PDBs

   When hot reload is used with dotnet watch, the baseline PDBs are available, and sequence points are enabled, but there are no PDB updates.

* [hot_reload] Fix off by one error

   when counting added and modified rows

* [hot_reload] Allow custom attribute deletions, even without ChangeCustomAttributes capability

   Roslyn seems to delete nullability annotations sometimes

* Add regression test for adding static lambdas

* param attributes for hot reload

* don't run test where it isn't supported
src/libraries/System.Runtime.Loader/tests/ApplyUpdate/System.Reflection.Metadata.ApplyUpdate.Test.StaticLambdaRegression/StaticLambdaRegression.cs [new file with mode: 0644]
src/libraries/System.Runtime.Loader/tests/ApplyUpdate/System.Reflection.Metadata.ApplyUpdate.Test.StaticLambdaRegression/StaticLambdaRegression_v1.cs [new file with mode: 0644]
src/libraries/System.Runtime.Loader/tests/ApplyUpdate/System.Reflection.Metadata.ApplyUpdate.Test.StaticLambdaRegression/StaticLambdaRegression_v2.cs [new file with mode: 0644]
src/libraries/System.Runtime.Loader/tests/ApplyUpdate/System.Reflection.Metadata.ApplyUpdate.Test.StaticLambdaRegression/System.Reflection.Metadata.ApplyUpdate.Test.StaticLambdaRegression.csproj [new file with mode: 0644]
src/libraries/System.Runtime.Loader/tests/ApplyUpdate/System.Reflection.Metadata.ApplyUpdate.Test.StaticLambdaRegression/deltascript.json [new file with mode: 0644]
src/libraries/System.Runtime.Loader/tests/ApplyUpdateTest.cs
src/libraries/System.Runtime.Loader/tests/ApplyUpdateUtil.cs
src/libraries/System.Runtime.Loader/tests/System.Runtime.Loader.Tests.csproj
src/mono/mono/component/hot_reload.c
src/mono/mono/metadata/metadata.c
src/mono/mono/metadata/mono-debug.c