Fix JIT debugger notification location (#53590)
authorJan Vorlicek <jan.vorlicek@volny.cz>
Wed, 2 Jun 2021 19:23:12 +0000 (21:23 +0200)
committerGitHub <noreply@github.com>
Wed, 2 Jun 2021 19:23:12 +0000 (19:23 +0000)
commitad6a69735d61a1bc22da9aff15ebc5df94f63beb
tree60caf0d874430c706ea946c7451c2360a16cda05
parent7a4f8996b1ecbac5d3f71a0c2b9023cf06e95c84
Fix JIT debugger notification location (#53590)

* Fix JIT debugger notification location

My recent change to enable jitting into a scratch buffer has broken
debugging due to the notification to debugger being sent too early. This
change moves the notification after the call to WriteCode and also
removes the CallCompileMethodWithSEHWrapper completely, since its only
purpose was to call the notification in PAL_FINALLY and only when the
JITting succeeded.

* Fix #endif comment

Co-authored-by: Jan Kotas <jkotas@microsoft.com>
Co-authored-by: Jan Kotas <jkotas@microsoft.com>
src/coreclr/vm/jitinterface.cpp