wut/include/coreinit/debug.h

54 lines
896 B
C
Raw Normal View History

2016-01-06 00:24:54 +01:00
#pragma once
2016-01-07 13:07:13 +01:00
#include <wut.h>
2016-01-06 00:24:54 +01:00
2016-01-07 17:02:54 +01:00
/**
* \defgroup coreinit_debug Debug
* \ingroup coreinit
* @{
*/
2016-01-07 15:09:43 +01:00
#ifdef __cplusplus
extern "C" {
#endif
2016-01-06 00:24:54 +01:00
2017-06-02 12:42:24 +02:00
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;
2016-01-07 17:02:54 +01:00
2016-01-06 00:24:54 +01:00
void
2016-01-07 13:48:11 +01:00
OSConsoleWrite(const char *msg,
uint32_t size);
2016-01-06 00:24:54 +01:00
2016-01-07 17:02:54 +01:00
2016-01-06 00:24:54 +01:00
void
OSReport(const char *fmt, ...);
2016-01-07 17:02:54 +01:00
2016-01-06 00:24:54 +01:00
void
2016-01-07 13:48:11 +01:00
OSPanic(const char *file,
uint32_t line,
const char *fmt, ...);
2016-01-06 00:24:54 +01:00
2016-01-07 17:02:54 +01:00
2016-01-06 00:24:54 +01:00
void
OSFatal(const char *msg);
2016-01-07 17:02:54 +01:00
2017-06-02 12:42:24 +02:00
void
DisassemblePPCRange(void *start,
void *end,
DisassemblyPrintFn printFn,
DisassemblyFindSymbolFn findSymbolFn,
DisassemblePPCFlags flags);
2016-01-07 15:09:43 +01:00
#ifdef __cplusplus
}
#endif
2016-01-07 17:02:54 +01:00
/** @} */