void MyExceptionHandler(PspDebugRegBlock *regs)
{
pspDebugScreenInit();
pspDebugScreenSetBackColor(0x00FF0000);
pspDebugScreenSetTextColor(0xFFFFFFFF);
pspDebugScreenClear();
pspDebugScreenPrintf("I regret to inform you your psp has just crashed\n");
pspDebugScreenPrintf("Please contact Sony technical support for further information\n\n");
pspDebugScreenPrintf("Exception Details:\n");
pspDebugDumpException(regs);
pspDebugScreenPrintf("\nBlame the 3rd party software, it cannot possibly be our fault!\n");
}
Pretty much the same code that is in the SDK examples...
I was wondering what i would have to add to my exception handler to show that offending routine message, because the info its showing me right now isnt helping much...
psp-adadr2line is a tool from the pspsdk or the psp toolchain. You can use it to find out where the exception occured, by given the address of the exception and the elf file from your homebrew to the application.
Best results are if you build you homebrew app with debug-info (using the -g option to gcc).