Fix suspend_policy that will be sent to debugger-libs, because on debugger-libs we...
commit93a2f4ea395c431ec61269b36e9a0f8c68a8e804
authorThays Grazia <thaystg@gmail.com>
Thu, 26 Mar 2020 22:04:09 +0000 (26 19:04 -0300)
committerGitHub <noreply@github.com>
Thu, 26 Mar 2020 22:04:09 +0000 (26 19:04 -0300)
treed2d721affc3c4aad908cc8e3234c08e4e279cf92
parent0565f6e2c0e1e15f490ab0e7d4005d0e36abaa29
Fix suspend_policy that will be sent to debugger-libs, because on debugger-libs we want to resume the VM only when it's suspended, but we were sending the wrong suspend_policy in the case of EVENT_KIND_VM_START and mono is started with suspend=y. (#19330)

With this fix we can do this PR again: https://github.com/mono/debugger-libs/pull/264/

Fixes https://devdiv.visualstudio.com/DevDiv/_workitems/edit/999375/
mcs/class/Mono.Debugger.Soft/Mono.Debugger.Soft/Connection.cs
mcs/class/Mono.Debugger.Soft/Test/dtest.cs
mono/mini/debugger-agent.c