| 975 | } |
| 976 | |
| 977 | bool DbgEngAdapter::WriteRegister(const std::string& reg, std::uintptr_t value) |
| 978 | { |
| 979 | unsigned long reg_index {}; |
| 980 | |
| 981 | if (this->m_debugRegisters->GetIndexByName(reg.c_str(), ®_index) != S_OK) |
| 982 | return false; |
| 983 | |
| 984 | DEBUG_VALUE debug_value {}; |
| 985 | debug_value.I64 = value; |
| 986 | debug_value.Type = DEBUG_VALUE_INT64; |
| 987 | |
| 988 | if (this->m_debugRegisters->SetValue(reg_index, &debug_value) != S_OK) |
| 989 | return false; |
| 990 | |
| 991 | return true; |
| 992 | } |
| 993 | |
| 994 | |
| 995 | std::string DbgEngAdapter::GetRegisterNameByIndex(std::uint32_t index) const |
nothing calls this directly
no outgoing calls
no test coverage detected