Skip to content

Commit

Permalink
test set $pc cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
Trass3r committed Jul 15, 2021
1 parent eb98b74 commit 01d5ff2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/MICore/CommandFactories/gdb.cs
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,8 @@ public override Task ExecJump(string filename, int line)

public override Task ExecJump(ulong address)
{
return _debugger.ConsoleCmdAsync("set $pc = " + string.Format(CultureInfo.InvariantCulture, "0x{0:X}", address), false);

string target = "*" + string.Format(CultureInfo.InvariantCulture, "0x{0:X}", address);
return JumpInternal(target);
}
Expand Down
1 change: 1 addition & 0 deletions src/MIDebugEngine/AD7.Impl/AD7Engine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ public int Jump(ulong address)
_engineCallback.OnError(EngineUtils.GetExceptionDescription(e));
return Constants.E_ABORT;
}
DebuggedProcess.ThreadCache.MarkDirty();

return Constants.S_OK;
}
Expand Down
2 changes: 1 addition & 1 deletion src/OpenDebugAD7/AD7DebugSession.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1355,7 +1355,7 @@ protected override void HandleGotoRequestAsync(IRequestResponder<GotoArguments>
if (!m_threads.TryGetValue(responder.Arguments.ThreadId, out thread))
throw new AD7Exception("Unknown thread id: " + responder.Arguments.ThreadId.ToString(CultureInfo.InvariantCulture));
}
BeforeContinue();
//BeforeContinue();
builder.CheckHR(thread.SetNextStatement(null, gotoTarget));
}
}
Expand Down

0 comments on commit 01d5ff2

Please sign in to comment.