MCPcopy Create free account
hub / github.com/Vector35/debugger / SetIP

Method SetIP

core/debuggercontroller.cpp:89–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87
88
89bool 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
113bool DebuggerController::Launch()

Callers 1

BNDebuggerSetIPFunction · 0.45

Calls 3

GetNameMethod · 0.80
MarkDirtyMethod · 0.45
GetThreadsMethod · 0.45

Tested by

no test coverage detected