Thread ID lookup and naming.

This commit is contained in:
Ben Vanik
2014-01-07 20:54:47 -08:00
parent 20b76b0e59
commit 5fd0b211ce
5 changed files with 94 additions and 0 deletions

View File

@@ -241,6 +241,20 @@ SHIM_CALL DbgBreakPoint_shim(
}
SHIM_CALL RtlRaiseException_shim(
PPCContext* ppc_state, KernelState* state) {
uint32_t record_ptr = SHIM_GET_ARG_32(0);
uint32_t code = SHIM_MEM_32(record_ptr + 0);
XELOGD(
"RtlRaiseException(%.8X(%.8X))",
record_ptr, code);
XEASSERTALWAYS();
}
} // namespace kernel
} // namespace xe
@@ -249,4 +263,5 @@ void xe::kernel::xboxkrnl::RegisterDebugExports(
ExportResolver* export_resolver, KernelState* state) {
SHIM_SET_MAPPING("xboxkrnl.exe", DbgPrint, state);
SHIM_SET_MAPPING("xboxkrnl.exe", DbgBreakPoint, state);
SHIM_SET_MAPPING("xboxkrnl.exe", RtlRaiseException, state);
}