#pragma once #include /** * \defgroup coreinit_debug Debug * \ingroup coreinit * @{ */ #ifdef __cplusplus extern "C" { #endif typedef void (*DisassemblyPrintFn)(const char *fmt, ...); typedef uint32_t (*DisassemblyFindSymbolFn)(uint32_t addr, char *symbolNameBuf, uint32_t symbolNameBufSize); typedef enum DisassemblePPCFlags { DISASSEMBLE_PPC_FLAGS_NONE = 0, } DisassemblePPCFlags; void OSConsoleWrite(const char *msg, uint32_t size); void OSReport(const char *fmt, ...); void OSPanic(const char *file, uint32_t line, const char *fmt, ...); void OSFatal(const char *msg); uint32_t OSGetSymbolName(uint32_t addr, char *symbolNameBuf, uint32_t symbolNameBufSize); uint32_t OSGetUPID(); void DisassemblePPCRange(void *start, void *end, DisassemblyPrintFn printFn, DisassemblyFindSymbolFn findSymbolFn, DisassemblePPCFlags flags); #ifdef __cplusplus } #endif /** @} */