Example of Capstone for both libxenia and the UI. Going to shuffle around.

This commit is contained in:
Ben Vanik
2015-06-10 23:31:19 -07:00
parent 8ca2b17e51
commit 6d4d1db310
16 changed files with 751 additions and 8 deletions

View File

@@ -113,7 +113,17 @@ namespace Xenia.Debug {
DisasmMachineCode = DisasmMachineCode.Replace("\n", "\r\n");
}
DisassembleX64();
OnChanged();
}
private static Native.X64Disassembler disassembler = new Native.X64Disassembler();
private void DisassembleX64() {
var str = disassembler.GenerateString(IntPtr.Zero, 0);
System.Diagnostics.Debug.WriteLine(str);
disassembler.Dispose();
}
}
}

View File

@@ -125,6 +125,12 @@
<Compile Include="Utilities\FileMapping.cs" />
<Compile Include="Utilities\TaskExtensions.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Xenia.Debug.Native\Xenia.Debug.Native.vcxproj">
<Project>{5ae85790-f2ea-4077-8953-825e9c0aade9}</Project>
<Name>Xenia.Debug.Native</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.