Skip to content

Commit ddecd9f

Browse files
committed
test set $pc cmd
1 parent e3d886b commit ddecd9f

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
@@ -1344,7 +1344,7 @@ protected override void HandleGotoRequestAsync(IRequestResponder<GotoArguments>
13441344
if (!m_threads.TryGetValue(responder.Arguments.ThreadId, out thread))
13451345
throw new AD7Exception("Unknown thread id: " + responder.Arguments.ThreadId.ToString(CultureInfo.InvariantCulture));
13461346
}
1347-
BeforeContinue();
1347+
//BeforeContinue();
13481348
builder.CheckHR(thread.SetNextStatement(null, gotoTarget));
13491349
}
13501350
}

0 commit comments

Comments
 (0)