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

Method GetRegisterValue

core/debuggerstate.cpp:60–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58
59
60uint64_t DebuggerRegisters::GetRegisterValue(const std::string& name)
61{
62 // Unlike the Python implementation, we require the DebuggerState to explicitly check for dirty caches
63 // and update the values when necessary. This is mainly because the update can be expensive.
64 if (IsDirty())
65 Update();
66
67 auto iter = m_registerCache.find(name);
68 if (iter == m_registerCache.end())
69 return 0x0;
70
71 return iter->second.m_value;
72}
73
74
75bool DebuggerRegisters::SetRegisterValue(const std::string& name, uint64_t value)

Callers 2

RegisterDisplayFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected