DBG+GUI: update Zydis to the latest version
This commit is contained in:
parent
289a6b1911
commit
b10968e956
|
|
@ -1 +1 @@
|
|||
Subproject commit ac3a01bd572aabbc669dd0beb8d6c4aa25fd85cc
|
||||
Subproject commit 38c99667c4928246cc6c590f2d95ab4313eba8ff
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
#include "zydis_wrapper.h"
|
||||
#include <Zydis/src/FormatHelper.h>
|
||||
#include <Zydis/Formatter.h>
|
||||
#include <windows.h>
|
||||
|
||||
bool Zydis::mInitialized = false;
|
||||
|
|
@ -170,17 +170,19 @@ std::string Zydis::OperandText(int opindex) const
|
|||
}
|
||||
|
||||
//Get the operand format function.
|
||||
ZydisFormatterFormatOperandFunc fmtFunc = nullptr;
|
||||
ZydisFormatterOperandFunc fmtFunc = nullptr;
|
||||
if(!ZYDIS_SUCCESS(ZydisFormatterSetHook(&mFormatter, type, (const void**)&fmtFunc)))
|
||||
return "";
|
||||
|
||||
//Format the operand.
|
||||
char buf[200] = "";
|
||||
auto bufPtr = buf;
|
||||
ZydisString zyStr;
|
||||
zyStr.buffer = buf;
|
||||
zyStr.length = 0;
|
||||
zyStr.capacity = sizeof(buf) - 1;
|
||||
fmtFunc(
|
||||
&mFormatter,
|
||||
&bufPtr,
|
||||
sizeof(buf),
|
||||
&zyStr,
|
||||
&mInstr,
|
||||
&op,
|
||||
nullptr
|
||||
|
|
|
|||
|
|
@ -140,12 +140,12 @@
|
|||
<ItemGroup>
|
||||
<ClCompile Include="zydis\src\Decoder.c" />
|
||||
<ClCompile Include="zydis\src\DecoderData.c" />
|
||||
<ClCompile Include="zydis\src\FormatHelper.c" />
|
||||
<ClCompile Include="zydis\src\Formatter.c" />
|
||||
<ClCompile Include="zydis\src\MetaInfo.c" />
|
||||
<ClCompile Include="zydis\src\Mnemonic.c" />
|
||||
<ClCompile Include="zydis\src\Register.c" />
|
||||
<ClCompile Include="zydis\src\SharedData.c" />
|
||||
<ClCompile Include="zydis\src\String.c" />
|
||||
<ClCompile Include="zydis\src\Utils.c" />
|
||||
<ClCompile Include="zydis\src\Zydis.c" />
|
||||
<ClCompile Include="zydis_wrapper.cpp" />
|
||||
|
|
@ -161,6 +161,7 @@
|
|||
<ClInclude Include="zydis\include\Zydis\Register.h" />
|
||||
<ClInclude Include="zydis\include\Zydis\SharedTypes.h" />
|
||||
<ClInclude Include="zydis\include\Zydis\Status.h" />
|
||||
<ClInclude Include="zydis\include\Zydis\String.h" />
|
||||
<ClInclude Include="zydis\include\Zydis\Utils.h" />
|
||||
<ClInclude Include="zydis\include\Zydis\Zydis.h" />
|
||||
<ClInclude Include="zydis\src\DecoderData.h" />
|
||||
|
|
|
|||
|
|
@ -26,9 +26,6 @@
|
|||
<ClCompile Include="zydis\src\DecoderData.c">
|
||||
<Filter>Source Files\Zydis</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="zydis\src\FormatHelper.c">
|
||||
<Filter>Source Files\Zydis</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="zydis\src\Formatter.c">
|
||||
<Filter>Source Files\Zydis</Filter>
|
||||
</ClCompile>
|
||||
|
|
@ -50,6 +47,9 @@
|
|||
<ClCompile Include="zydis\src\Zydis.c">
|
||||
<Filter>Source Files\Zydis</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="zydis\src\String.c">
|
||||
<Filter>Source Files\Zydis</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="zydis_wrapper.h">
|
||||
|
|
@ -100,5 +100,8 @@
|
|||
<ClInclude Include="zydis\src\SharedData.h">
|
||||
<Filter>Source Files\Zydis</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="zydis\include\Zydis\String.h">
|
||||
<Filter>Header Files\Zydis</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
Loading…
Reference in New Issue