From 2100cea1762c099bbf135f80fc92bf1e4c941849 Mon Sep 17 00:00:00 2001 From: James Benton Date: Fri, 2 Jun 2017 11:42:42 +0100 Subject: [PATCH] coreinit: Add OSGetSymbolName, OSGetUPID. --- include/coreinit/debug.h | 10 ++++++++++ src/rpl/coreinit/exports.h | 2 ++ 2 files changed, 12 insertions(+) diff --git a/include/coreinit/debug.h b/include/coreinit/debug.h index 511e05f..0dcd152 100644 --- a/include/coreinit/debug.h +++ b/include/coreinit/debug.h @@ -39,6 +39,16 @@ 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, diff --git a/src/rpl/coreinit/exports.h b/src/rpl/coreinit/exports.h index 4b8f364..512cc83 100644 --- a/src/rpl/coreinit/exports.h +++ b/src/rpl/coreinit/exports.h @@ -85,6 +85,8 @@ EXPORT(OSConsoleWrite); EXPORT(OSReport); EXPORT(OSPanic); EXPORT(OSFatal); +EXPORT(OSGetSymbolName); +EXPORT(OSGetUPID); EXPORT(DisassemblePPCRange); // coreinit/dynload.h