2015-01-29 16:48:05 +01:00
|
|
|
#include "stdafx.h"
|
|
|
|
|
#include "Emu/System.h"
|
2016-05-13 12:17:26 +02:00
|
|
|
#include "Emu/PSP2/ARMv7Module.h"
|
2015-01-29 16:48:05 +01:00
|
|
|
|
2015-06-21 01:04:01 +02:00
|
|
|
#include "sceDbg.h"
|
2015-01-29 22:42:53 +01:00
|
|
|
|
2017-05-13 20:30:37 +02:00
|
|
|
logs::channel sceDbg("sceDbg");
|
2016-02-01 22:53:16 +01:00
|
|
|
|
2015-01-29 22:42:53 +01:00
|
|
|
s32 sceDbgSetMinimumLogLevel(s32 minimumLogLevel)
|
|
|
|
|
{
|
2016-08-08 18:01:06 +02:00
|
|
|
fmt::throw_exception("Unimplemented" HERE);
|
2015-01-29 22:42:53 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
s32 sceDbgSetBreakOnErrorState(SceDbgBreakOnErrorState state)
|
|
|
|
|
{
|
2016-08-08 18:01:06 +02:00
|
|
|
fmt::throw_exception("Unimplemented" HERE);
|
2015-01-29 22:42:53 +01:00
|
|
|
}
|
|
|
|
|
|
2016-02-01 22:53:16 +01:00
|
|
|
s32 sceDbgAssertionHandler(vm::cptr<char> pFile, s32 line, b8 stop, vm::cptr<char> pComponent, vm::cptr<char> pMessage, arm_va_args_t va_args)
|
2015-01-29 22:42:53 +01:00
|
|
|
{
|
2016-08-08 18:01:06 +02:00
|
|
|
fmt::throw_exception("Unimplemented" HERE);
|
2015-01-29 22:42:53 +01:00
|
|
|
}
|
|
|
|
|
|
2016-02-01 22:53:16 +01:00
|
|
|
s32 sceDbgLoggingHandler(vm::cptr<char> pFile, s32 line, s32 severity, vm::cptr<char> pComponent, vm::cptr<char> pMessage, arm_va_args_t va_args)
|
2015-01-29 22:42:53 +01:00
|
|
|
{
|
2016-08-08 18:01:06 +02:00
|
|
|
fmt::throw_exception("Unimplemented" HERE);
|
2015-01-29 22:42:53 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2016-02-01 22:53:16 +01:00
|
|
|
#define REG_FUNC(nid, name) REG_FNID(SceDbg, nid, name)
|
2015-01-29 16:48:05 +01:00
|
|
|
|
2016-02-01 22:53:16 +01:00
|
|
|
DECLARE(arm_module_manager::SceDbg)("SceDbg", []()
|
2015-01-29 16:48:05 +01:00
|
|
|
{
|
2015-01-29 22:42:53 +01:00
|
|
|
REG_FUNC(0x941622FA, sceDbgSetMinimumLogLevel);
|
|
|
|
|
REG_FUNC(0x1AF3678B, sceDbgAssertionHandler);
|
|
|
|
|
REG_FUNC(0x6605AB19, sceDbgLoggingHandler);
|
|
|
|
|
REG_FUNC(0xED4A00BA, sceDbgSetBreakOnErrorState);
|
2015-01-29 16:48:05 +01:00
|
|
|
});
|