From bd075c65fdd122c32acd85eb5f9e5046b83264f8 Mon Sep 17 00:00:00 2001 From: Andreas Hollandt Date: Sat, 9 Jan 2021 16:30:34 +0100 Subject: [PATCH] send "goto" stopped event after sending the command response --- src/OpenDebugAD7/AD7DebugSession.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/OpenDebugAD7/AD7DebugSession.cs b/src/OpenDebugAD7/AD7DebugSession.cs index 8f106a637..d4c5cfbd0 100644 --- a/src/OpenDebugAD7/AD7DebugSession.cs +++ b/src/OpenDebugAD7/AD7DebugSession.cs @@ -1334,11 +1334,11 @@ protected override void HandleGotoRequestAsync(IRequestResponder } var builder = new ErrorBuilder(() => AD7Resources.Error_UnableToSetNextStatement); + IDebugThread2 thread = null; try { if (m_gotoCodeContexts.TryGetValue(responder.Arguments.TargetId, out IDebugCodeContext2 gotoTarget)) { - IDebugThread2 thread = null; lock (m_threads) { if (!m_threads.TryGetValue(responder.Arguments.ThreadId, out thread)) @@ -1352,9 +1352,11 @@ protected override void HandleGotoRequestAsync(IRequestResponder { m_isStopped = true; responder.SetError(new ProtocolException(e.Message)); + return; } responder.SetResponse(response); + FireStoppedEvent(thread, StoppedEvent.ReasonValue.Goto); } protected override void HandleGotoTargetsRequestAsync(IRequestResponder responder)