Skip to content

Commit 3085044

Browse files
committed
send "goto" stopped event after sending the command response
1 parent 0a95e6c commit 3085044

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
@@ -1322,11 +1322,11 @@ protected override void HandleGotoRequestAsync(IRequestResponder<GotoArguments>
13221322
}
13231323

13241324
var builder = new ErrorBuilder(() => AD7Resources.Error_UnableToSetNextStatement);
1325+
IDebugThread2 thread = null;
13251326
try
13261327
{
13271328
if (m_gotoCodeContexts.TryGetValue(responder.Arguments.TargetId, out IDebugCodeContext2 gotoTarget))
13281329
{
1329-
IDebugThread2 thread = null;
13301330
lock (m_threads)
13311331
{
13321332
if (!m_threads.TryGetValue(responder.Arguments.ThreadId, out thread))
@@ -1340,9 +1340,11 @@ protected override void HandleGotoRequestAsync(IRequestResponder<GotoArguments>
13401340
{
13411341
m_isStopped = true;
13421342
responder.SetError(new ProtocolException(e.Message));
1343+
return;
13431344
}
13441345

13451346
responder.SetResponse(response);
1347+
FireStoppedEvent(thread, StoppedEvent.ReasonValue.Goto);
13461348
}
13471349

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

0 commit comments

Comments
 (0)