Fixing broken error check and adding some manual breakpoints.
This commit is contained in:
@@ -231,6 +231,17 @@ SHIM_CALL DbgPrint_shim(
|
||||
}
|
||||
|
||||
|
||||
void xeDbgBreakPoint() {
|
||||
DebugBreak();
|
||||
}
|
||||
|
||||
|
||||
SHIM_CALL DbgBreakPoint_shim(
|
||||
xe_ppc_state_t* ppc_state, KernelState* state) {
|
||||
XELOGD("DbgBreakPoint()");
|
||||
}
|
||||
|
||||
|
||||
} // namespace xboxkrnl
|
||||
} // namespace kernel
|
||||
} // namespace xe
|
||||
@@ -239,4 +250,5 @@ SHIM_CALL DbgPrint_shim(
|
||||
void xe::kernel::xboxkrnl::RegisterDebugExports(
|
||||
ExportResolver* export_resolver, KernelState* state) {
|
||||
SHIM_SET_MAPPING("xboxkrnl.exe", DbgPrint, state);
|
||||
SHIM_SET_MAPPING("xboxkrnl.exe", DbgBreakPoint, state);
|
||||
}
|
||||
|
||||
@@ -21,6 +21,9 @@ namespace kernel {
|
||||
namespace xboxkrnl {
|
||||
|
||||
|
||||
void xeDbgBreakPoint();
|
||||
|
||||
|
||||
} // namespace xboxkrnl
|
||||
} // namespace kernel
|
||||
} // namespace xe
|
||||
|
||||
@@ -27,6 +27,7 @@ namespace xboxkrnl {
|
||||
|
||||
void xeKeBugCheckEx(uint32_t code, uint32_t param1, uint32_t param2, uint32_t param3, uint32_t param4) {
|
||||
XELOGD("*** STOP: 0x%.8X (0x%.8X, 0x%.8X, 0x%.8X, 0x%.8X)", code, param1, param2, param3, param4);
|
||||
DebugBreak();
|
||||
XEASSERTALWAYS();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user