Skip to content

Commit 01d5ff2

Browse files
committed
test set $pc cmd
1 parent eb98b74 commit 01d5ff2

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

src/MICore/CommandFactories/gdb.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,8 @@ public override Task ExecJump(string filename, int line)
201201

202202
public override Task ExecJump(ulong address)
203203
{
204+
return _debugger.ConsoleCmdAsync("set $pc = " + string.Format(CultureInfo.InvariantCulture, "0x{0:X}", address), false);
205+
204206
string target = "*" + string.Format(CultureInfo.InvariantCulture, "0x{0:X}", address);
205207
return JumpInternal(target);
206208
}

src/MIDebugEngine/AD7.Impl/AD7Engine.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@ public int Jump(ulong address)
216216
_engineCallback.OnError(EngineUtils.GetExceptionDescription(e));
217217
return Constants.E_ABORT;
218218
}
219+
DebuggedProcess.ThreadCache.MarkDirty();
219220

220221
return Constants.S_OK;
221222
}

src/OpenDebugAD7/AD7DebugSession.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1355,7 +1355,7 @@ protected override void HandleGotoRequestAsync(IRequestResponder<GotoArguments>
13551355
if (!m_threads.TryGetValue(responder.Arguments.ThreadId, out thread))
13561356
throw new AD7Exception("Unknown thread id: " + responder.Arguments.ThreadId.ToString(CultureInfo.InvariantCulture));
13571357
}
1358-
BeforeContinue();
1358+
//BeforeContinue();
13591359
builder.CheckHR(thread.SetNextStatement(null, gotoTarget));
13601360
}
13611361
}

0 commit comments

Comments
 (0)