Skip to content

Commit

Permalink
send "goto" stopped event after sending the command response
Browse files Browse the repository at this point in the history
  • Loading branch information
Trass3r committed Jan 9, 2021
1 parent 0a95e6c commit 3085044
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/OpenDebugAD7/AD7DebugSession.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1322,11 +1322,11 @@ protected override void HandleGotoRequestAsync(IRequestResponder<GotoArguments>
}

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))
Expand All @@ -1340,9 +1340,11 @@ protected override void HandleGotoRequestAsync(IRequestResponder<GotoArguments>
{
m_isStopped = true;
responder.SetError(new ProtocolException(e.Message));
return;
}

responder.SetResponse(response);
FireStoppedEvent(thread, StoppedEvent.ReasonValue.Goto);
}

protected override void HandleGotoTargetsRequestAsync(IRequestResponder<GotoTargetsArguments, GotoTargetsResponse> responder)
Expand Down

0 comments on commit 3085044

Please sign in to comment.