[debugger] Ports from dotnet/runtime to maintain compatibility (#21653)
commit0532e3ee8b393f7c2b142bbc833a4f4e147e8564
authorMauro Agnoletti <mauro.agnoletti@gmail.com>
Mon, 15 May 2023 19:10:16 +0000 (15 15:10 -0400)
committerGitHub <noreply@github.com>
Mon, 15 May 2023 19:10:16 +0000 (15 21:10 +0200)
tree889415ab1f005f4560b14b721dd7f7b49b1cfcc2
parent3005442218bc1edbeb309cde746067b8f34ecde7
[debugger] Ports from dotnet/runtime to maintain compatibility (#21653)

Changes:

- Support symbol server on mobile devices: port from https://github.com/dotnet/runtime/pull/82555
- Show loaded symbols on VS module window: port from https://github.com/dotnet/runtime/pull/82587
- Added compatibility with CMD_GET_ENC_CAPABILITIES message: even if C# Hot Reload is not supported in Xamarin Forms, the debug client can send this message if the version is at least 2.61, which it is since the latest changes. See code for reference: https://github.com/mono/debugger-libs/blob/main/Mono.Debugger.Soft/Mono.Debugger.Soft/VirtualMachine.cs#L799-L800. For that reason and for compatibility, we should support that message and return "Baseline", the same as the client code does with a lower version.

The main motivation of these ports is to support symbol server in Xamarin legacy, however the other ports are needed because we had to bump the minor version from 58 to 63.
mono/metadata/debug-mono-ppdb.c
mono/metadata/debug-mono-ppdb.h
mono/mini/debugger-agent.c