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

Method GetRegisterNameByIndex

core/adapters/dbgengadapter.cpp:995–1008  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

993
994
995std::string DbgEngAdapter::GetRegisterNameByIndex(std::uint32_t index) const
996{
997 if (!m_debugRegisters)
998 return {};
999
1000 unsigned long reg_length {};
1001 DEBUG_REGISTER_DESCRIPTION reg_description {};
1002
1003 std::array<char, 256> out {'\0'};
1004 if (this->m_debugRegisters->GetDescription(index, out.data(), 256, &reg_length, &reg_description) != S_OK)
1005 return {};
1006
1007 return std::string(out.data());
1008}
1009
1010
1011std::vector<std::string> DbgEngAdapter::GetRegisterList() const

Callers 1

GetRegisterListMethod · 0.95

Calls 1

dataMethod · 0.45

Tested by

no test coverage detected