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

Method WriteRegister

core/adapters/dbgengadapter.cpp:977–992  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

975}
976
977bool 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(), &reg_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
995std::string DbgEngAdapter::GetRegisterNameByIndex(std::uint32_t index) const

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected