Skip to content

Commit bd075c6

Browse files
Trass3rWardenGnaw
authored andcommitted
send "goto" stopped event after sending the command response
1 parent f6c0809 commit bd075c6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/OpenDebugAD7/AD7DebugSession.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1334,11 +1334,11 @@ protected override void HandleGotoRequestAsync(IRequestResponder<GotoArguments>
13341334
}
13351335

13361336
var builder = new ErrorBuilder(() => AD7Resources.Error_UnableToSetNextStatement);
1337+
IDebugThread2 thread = null;
13371338
try
13381339
{
13391340
if (m_gotoCodeContexts.TryGetValue(responder.Arguments.TargetId, out IDebugCodeContext2 gotoTarget))
13401341
{
1341-
IDebugThread2 thread = null;
13421342
lock (m_threads)
13431343
{
13441344
if (!m_threads.TryGetValue(responder.Arguments.ThreadId, out thread))
@@ -1352,9 +1352,11 @@ protected override void HandleGotoRequestAsync(IRequestResponder<GotoArguments>
13521352
{
13531353
m_isStopped = true;
13541354
responder.SetError(new ProtocolException(e.Message));
1355+
return;
13551356
}
13561357

13571358
responder.SetResponse(response);
1359+
FireStoppedEvent(thread, StoppedEvent.ReasonValue.Goto);
13581360
}
13591361

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

0 commit comments

Comments
 (0)