| 993 | |
| 994 | |
| 995 | std::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, ®_length, ®_description) != S_OK) |
| 1005 | return {}; |
| 1006 | |
| 1007 | return std::string(out.data()); |
| 1008 | } |
| 1009 | |
| 1010 | |
| 1011 | std::vector<std::string> DbgEngAdapter::GetRegisterList() const |