| 58 | |
| 59 | |
| 60 | uint64_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 | |
| 75 | bool DebuggerRegisters::SetRegisterValue(const std::string& name, uint64_t value) |
no outgoing calls
no test coverage detected