Environment:
```
0:000> dv /v Code
@ebx Code = 0x271d
```
```
>>> int( stack[0xb].getParam("Code") )
Traceback (most recent call last):
File "<console>", line 1, in <module>
DbgException: Call IDebugRegisters2::GetIndexByNameWide failed
HRESULT 0x80004002
```
Debugging:
```
0:001> k4
# Child-SP RetAddr Call Site
00 00000000`020ca5f0 000007fe`e116ffcb pykd!kdlib::getRegsiterIndex+0xa1 [~\kdlibcpp\source\win\dbgeng.cpp @ 1575]
01 00000000`020ca6b0 000007fe`e1178c72 pykd!kdlib::RegisterAccessor::getValue<unsigned long>+0x5b [~\kdlibcpp\source\dataaccessorimpl.h @ 1156]
02 00000000`020ca790 000007fe`e1082d8f pykd!kdlib::RegisterAccessor::readDWord+0x32 [~\kdlibcpp\source\dataaccessorimpl.h @ 994]
03 00000000`020ca7c0 000007fe`e0ea5477 pykd!kdlib::TypedVarBase::getValue+0x6cf [~\kdlibcpp\source\typedvar.cpp @ 500]
0:001> dv name
name = 0x00000000`0c893118 "EBX"
0:001> dv hres
hres = 0x80004002
```
Comments: ** Comment from web user: ussrhero **
```
0:000> dv /v Code
@ebx Code = 0x271d
```
```
>>> int( stack[0xb].getParam("Code") )
Traceback (most recent call last):
File "<console>", line 1, in <module>
DbgException: Call IDebugRegisters2::GetIndexByNameWide failed
HRESULT 0x80004002
```
Debugging:
```
0:001> k4
# Child-SP RetAddr Call Site
00 00000000`020ca5f0 000007fe`e116ffcb pykd!kdlib::getRegsiterIndex+0xa1 [~\kdlibcpp\source\win\dbgeng.cpp @ 1575]
01 00000000`020ca6b0 000007fe`e1178c72 pykd!kdlib::RegisterAccessor::getValue<unsigned long>+0x5b [~\kdlibcpp\source\dataaccessorimpl.h @ 1156]
02 00000000`020ca790 000007fe`e1082d8f pykd!kdlib::RegisterAccessor::readDWord+0x32 [~\kdlibcpp\source\dataaccessorimpl.h @ 994]
03 00000000`020ca7c0 000007fe`e0ea5477 pykd!kdlib::TypedVarBase::getValue+0x6cf [~\kdlibcpp\source\typedvar.cpp @ 500]
0:001> dv name
name = 0x00000000`0c893118 "EBX"
0:001> dv hres
hres = 0x80004002
```
Comments: ** Comment from web user: ussrhero **
1. Проверил, действительно Windows Kits для Rs1 содержит модули с версиями 14321.
2. Добавил тест GetRegIndex - работает одинаково и для 9600 и для 14321
getRegsiterIndex(L"rax"); //работает
getRegsiterIndex(L"RAX"); // фейлит
3. Непонятно, как все работало до сих пор )). Ошибка видимо недавно стала проявляться, откуда то отсюда ноги растут:
return loadTypedVar(loadType(sym), getRegisterAccessor(m_cpuContext->getRegisterName(regId)));
// return loadTypedVar(loadType(sym), getVariantAccessor(m_cpuContext->getRegisterByIndex(regId)));
Короче говоря надо править :))