mirror of
https://github.com/wiiu-env/wut.git
synced 2024-12-05 03:24:17 +01:00
670ef1d342
- add function OSIsDebuggerInitialized - add function OSIsDebuggerPresent - add function OSIsECOBoot - add function OSIsECOMode
94 lines
1.5 KiB
C
94 lines
1.5 KiB
C
#pragma once
|
|
#include <wut.h>
|
|
|
|
/**
|
|
* \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
|
|
OSReportVerbose(const char *fmt, ...);
|
|
|
|
|
|
void
|
|
OSReportInfo(const char *fmt, ...);
|
|
|
|
|
|
void
|
|
OSReportWarn(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();
|
|
|
|
BOOL
|
|
OSIsDebuggerInitialized();
|
|
|
|
BOOL
|
|
OSIsDebuggerPresent();
|
|
|
|
BOOL
|
|
OSIsECOBoot();
|
|
|
|
BOOL
|
|
OSIsECOMode();
|
|
|
|
BOOL
|
|
DisassemblePPCOpcode(uint32_t *opcode,
|
|
char *buffer,
|
|
uint32_t bufferSize,
|
|
DisassemblyFindSymbolFn findSymbolFn,
|
|
DisassemblePPCFlags flags);
|
|
|
|
void
|
|
DisassemblePPCRange(void *start,
|
|
void *end,
|
|
DisassemblyPrintFn printFn,
|
|
DisassemblyFindSymbolFn findSymbolFn,
|
|
DisassemblePPCFlags flags);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
/** @} */
|