From 8c09cd2ebb73d284caa0a3eb2574d67c2f4ca4dd Mon Sep 17 00:00:00 2001 From: Andreas Hollandt Date: Sat, 17 Jul 2021 14:31:16 +0200 Subject: [PATCH] remove custom CapabilitiesEvent --- src/OpenDebugAD7/AD7DebugSession.cs | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/src/OpenDebugAD7/AD7DebugSession.cs b/src/OpenDebugAD7/AD7DebugSession.cs index 8ce56dfb0..8a6b06c8b 100644 --- a/src/OpenDebugAD7/AD7DebugSession.cs +++ b/src/OpenDebugAD7/AD7DebugSession.cs @@ -29,18 +29,6 @@ namespace OpenDebugAD7 { - // not in the DAP dll yet - internal sealed class CapabilitiesEvent : DebugEvent - { - internal CapabilitiesEvent() - : base("capabilities") - { - } - - [JsonProperty("capabilities")] - internal InitializeResponse Capabilities; - } - internal sealed class AD7DebugSession : DebugAdapterBase, IDebugPortNotify2, IDebugEventCallback2 { // This is a general purpose lock. Don't hold it across long operations. @@ -1044,7 +1032,7 @@ private void UpdateCapabilities() m_canReverse = canReverse; Protocol.SendEvent(new CapabilitiesEvent() { - Capabilities = new InitializeResponse() + Capabilities = new Capabilities() { SupportsStepBack = canReverse, ExceptionBreakpointFilters = null, // FIXME: this is just to prevent unwanted response entries