pspdev / psplinkusb

General purpose homebrew/debugging toolkit for PSP
https://pspdev.github.io/debugging.html
BSD 3-Clause "New" or "Revised" License
64 stars 35 forks source link

Show the address when an exception occures #11

Closed sharkwouter closed 4 years ago

sharkwouter commented 4 years ago

This address can be used with psp-addr2line to find out on which line the application crashes. With this change users no longer need to run calc $epc-$mod everytime a crash happens to find this.

sharkwouter commented 4 years ago

To test this, you need a prx which causes an exception. If you run this it should print the address.

You can then use that on your pc with the elf file like:

psp-addr2line -e elffile.elf address

Replace the filename with the real one and address with the address received.