mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-28 05:34:11 -04:00
dmnt: implement remaining basic gdbstub packets
This commit is contained in:
parent
534c2c76f5
commit
904ab19823
4 changed files with 541 additions and 2 deletions
|
@ -313,6 +313,15 @@ namespace ams::dmnt {
|
|||
}
|
||||
}
|
||||
|
||||
Result DebugProcess::Terminate() {
|
||||
if (this->IsValid()) {
|
||||
R_ABORT_UNLESS(svc::TerminateDebugProcess(m_debug_handle));
|
||||
this->Detach();
|
||||
}
|
||||
|
||||
return ResultSuccess();
|
||||
}
|
||||
|
||||
void DebugProcess::GetBranchTarget(svc::ThreadContext &ctx, u64 thread_id, u64 ¤t_pc, u64 &target) {
|
||||
/* Save pc, in case we modify it. */
|
||||
const u64 pc = current_pc;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue