Fiddling with function data.

This commit is contained in:
Ben Vanik
2015-06-09 22:01:01 -07:00
parent d482885378
commit 070d34cd02
3 changed files with 28 additions and 9 deletions

View File

@@ -17,6 +17,27 @@
namespace xe {
namespace debug {
class FunctionDisasmData {
public:
struct Header {
// Format is used by tooling, changes must be made across all targets.
// + 0 4b (data size)
// + 4 4b start_address
// + 8 4b end_address
// +12 4b type (user, external, etc)
// +16 4b offset of source disasm
// +20 4b length of source disasm
// +24 4b offset of raw hir disasm
// +28 4b length of raw hir disasm
// +32 4b offset of opt hir disasm
// +36 4b length of opt hir disasm
// +40 4b offset of machine code disasm
// +44 4b length of machine code disasm
};
static size_t SizeOfHeader() { return sizeof(Header); }
};
class FunctionTraceData {
public:
static const int kFunctionCallerHistoryCount = 4;