Adding modules/functions to the debugger.

This commit is contained in:
Ben Vanik
2015-06-08 21:12:40 -07:00
parent 9d7d6df476
commit 573f190a43
47 changed files with 1427 additions and 128 deletions

View File

@@ -3,8 +3,8 @@ include "common.fbs";
namespace xe.debug.proto;
enum ModuleType:byte {
Kernel,
User,
Kernel = 0,
User = 1,
}
table Module {
@@ -18,8 +18,12 @@ table Module {
table ListModulesRequest {
}
struct ListModuleEntry {
handle:uint;
function_count:uint;
}
table ListModulesResponse {
module_ids:[uint];
entry:[ListModuleEntry];
}
table GetModuleRequest {
@@ -29,3 +33,36 @@ table GetModuleResponse {
module:Module;
}
table FunctionEntry {
identifier:ulong;
address_start:uint;
address_end:uint;
name:string;
}
table Function {
identifier:ulong;
address_start:uint;
address_end:uint;
name:string;
disasm_ppc:string;
disasm_hir_raw:string;
disasm_hir_opt:string;
disasm_machine_code:string;
}
table ListFunctionsRequest {
module_id:uint;
function_index_start:uint;
function_index_end:uint;
}
table ListFunctionsResponse {
entry:[FunctionEntry];
}
table GetFunctionRequest {
identifier:ulong;
}
table GetFunctionResponse {
function:Function;
}