[mono][debugger] Insert and search seq_point in the same MonoJitMemoryManager (#54757)
authorThays Grazia <thaystg@gmail.com>
Mon, 28 Jun 2021 12:44:05 +0000 (09:44 -0300)
committerGitHub <noreply@github.com>
Mon, 28 Jun 2021 12:44:05 +0000 (07:44 -0500)
commit084392d5d642dcb42edfd8f168042ad3695d5d3f
treef08b3a57f7723bca1251caf6926ade37d6edaadc
parent91599fff26619cb8bccb7b39c39590e7cd9a4379
[mono][debugger] Insert and search seq_point in the same MonoJitMemoryManager (#54757)

* [mono][debugger] Fixing side effect of #48483

When starting XAML Hot Reload, in transform.c the seq_point was saved using jit_mm_for_method: https://github.com/thaystg/runtime/blob/abccfadbf570033efee8ac9a6992f6f7ee51f474/src/mono/mono/mini/interp/transform.c#L9760
When trying to search was trying on get_default_jit_mm.

* Fixing everywhere that uses seq_points.

* Not used.

* Revert "Not used."

This reverts commit fd7f2061b40436300abdcc919705b56af53f4ca0.

* Revert "Fixing everywhere that uses seq_points."

This reverts commit 6faffb8c92a1c9be17d8c53d5f735075b9212220.

* Revert "[mono][debugger] Fixing side effect of #48483"

This reverts commit 44601d310bd5ca1929604af5e0b96436b416ced8.

* Always use get_default_jit_mm for seq_points.

* Adding a test case and fixing wasm debugging on ALC.

* Moving implementation to avoid changing line number

* Update src/mono/wasm/debugger/DebuggerTestSuite/Tests.cs

Co-authored-by: Larry Ewing <lewing@microsoft.com>
* Update src/mono/wasm/debugger/DebuggerTestSuite/Tests.cs

Co-authored-by: Larry Ewing <lewing@microsoft.com>
Co-authored-by: Larry Ewing <lewing@microsoft.com>
src/mono/mono/mini/debugger-agent.c
src/mono/mono/mini/interp/transform.c
src/mono/mono/mini/mini-runtime.c
src/mono/wasm/debugger/DebuggerTestSuite/DebuggerTestBase.cs
src/mono/wasm/debugger/DebuggerTestSuite/Tests.cs
src/mono/wasm/debugger/tests/debugger-test/debugger-test.cs