| View previous topic :: View next topic |
| Author |
Message |
seventoes
Joined: 02 Oct 2005 Posts: 79
|
Posted: Tue Feb 21, 2006 4:37 pm Post subject: Getting "Offending routine" message in exception h |
|
|
Ive noticed that on a few homebrew games there is a message on their exception handler that says this:
"The offending routine can be identified with:
addr2line <some stuff>"
Heres my current exception handler:
| Code: | 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... |
|
| Back to top |
|
 |
sandberg
Joined: 05 Oct 2005 Posts: 90 Location: Denmark
|
Posted: Wed Feb 22, 2006 1:50 am Post subject: |
|
|
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). _________________ Br, Sandberg |
|
| Back to top |
|
 |
seventoes
Joined: 02 Oct 2005 Posts: 79
|
Posted: Wed Feb 22, 2006 4:55 am Post subject: |
|
|
| Yeah i knew all that, and im already building with -g, but i still cant figure out how to get that message. |
|
| Back to top |
|
 |
TyRaNiD
Joined: 18 Jan 2004 Posts: 918
|
|
| Back to top |
|
 |
seventoes
Joined: 02 Oct 2005 Posts: 79
|
Posted: Wed Feb 22, 2006 6:23 am Post subject: |
|
|
| Aha! Thanks! I was looking around in the sdk samples directory, i guess i shuold have been checking the svn.. |
|
| Back to top |
|
 |
|