| 87 | |
| 88 | |
| 89 | bool DebuggerController::SetIP(uint64_t address) |
| 90 | { |
| 91 | std::string ipRegisterName; |
| 92 | std::string targetArch = GetRemoteArchitecture()->GetName(); |
| 93 | |
| 94 | if ((targetArch == "x86") || (targetArch == "i386")) |
| 95 | ipRegisterName = "eip"; |
| 96 | else if (targetArch == "x86_64") |
| 97 | ipRegisterName = "rip"; |
| 98 | else if ((targetArch == "aarch64") || (targetArch == "arm64")) |
| 99 | ipRegisterName = "pc"; |
| 100 | else |
| 101 | ipRegisterName = "pc"; |
| 102 | |
| 103 | if (!SetRegisterValue(ipRegisterName, address)) |
| 104 | return false; |
| 105 | |
| 106 | // This allows the thread frame widget to update properly |
| 107 | m_state->GetThreads()->MarkDirty(); |
| 108 | |
| 109 | return true; |
| 110 | } |
| 111 | |
| 112 | |
| 113 | bool DebuggerController::Launch() |
no test coverage detected