2015-06-11 08:31:19 +02:00
|
|
|
/**
|
|
|
|
|
******************************************************************************
|
|
|
|
|
* Xenia : Xbox 360 Emulator Research Project *
|
|
|
|
|
******************************************************************************
|
|
|
|
|
* Copyright 2015 Ben Vanik. All rights reserved. *
|
|
|
|
|
* Released under the BSD license - see LICENSE in the root for more details. *
|
|
|
|
|
******************************************************************************
|
|
|
|
|
*/
|
|
|
|
|
|
2015-06-17 05:18:48 +02:00
|
|
|
#ifndef XENIA_DEBUG_NATIVE_DISASSEMBLER_H_
|
|
|
|
|
#define XENIA_DEBUG_NATIVE_DISASSEMBLER_H_
|
2015-06-11 08:31:19 +02:00
|
|
|
|
|
|
|
|
#include <cstdint>
|
|
|
|
|
|
2015-06-17 05:18:48 +02:00
|
|
|
#include "xenia/base/string_buffer.h"
|
|
|
|
|
|
2015-06-11 08:31:19 +02:00
|
|
|
namespace Xenia {
|
|
|
|
|
namespace Debug {
|
|
|
|
|
namespace Native {
|
|
|
|
|
|
|
|
|
|
using namespace System;
|
|
|
|
|
using namespace System::Text;
|
|
|
|
|
|
2015-06-17 05:18:48 +02:00
|
|
|
public ref class Disassembler {
|
2015-06-11 08:31:19 +02:00
|
|
|
public:
|
2015-06-17 05:18:48 +02:00
|
|
|
Disassembler();
|
|
|
|
|
~Disassembler();
|
2015-06-11 08:31:19 +02:00
|
|
|
|
2015-06-17 05:18:48 +02:00
|
|
|
String^ DisassemblePPC(IntPtr code_address, size_t code_size);
|
|
|
|
|
String^ DisassembleX64(IntPtr code_address, size_t code_size);
|
2015-06-11 08:31:19 +02:00
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
uintptr_t capstone_handle_;
|
2015-06-17 05:18:48 +02:00
|
|
|
xe::StringBuffer* string_buffer_;
|
2015-06-11 08:31:19 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace Native
|
|
|
|
|
} // namespace Debug
|
|
|
|
|
} // namespace Xenia
|
|
|
|
|
|
2015-06-17 05:18:48 +02:00
|
|
|
#endif // XENIA_DEBUG_NATIVE_DISASSEMBLER_H_
|