 |
forums.ps2dev.org Homebrew PS2, PSP & PS3 Development Discussions
|
| View previous topic :: View next topic |
| Author |
Message |
snowsquirrel
Joined: 24 Feb 2008 Posts: 51
|
Posted: Wed Apr 02, 2008 12:29 pm Post subject: What is the best way to debug? What do you do? |
|
|
I am trying to get debugging with psp-insight working.
Background:
* I have used gdb and insight before, but never with the psp.
* I have psp link working and pspsh.
* working on a slim, 3.90 m33 firmware
* I build my project as a prx: link, psp-fixup-imports, psp-prxgen
What I do:
* If I just run my prx, as in ./game.prx, it launches fine.
* If I 'debug game.prx' , I am told it loads.
* I connect with psp-insight, and am told it connects successfully
* but I don't see any tty output on psp-insight, I can stop or anything.
* I have also tried launching the prx, and then attaching to it, but it appears that insight just freezes. It appears that during this, usbhostfs is printing lines about bulk writes wihich timeout.
Help me debug!
Do people actually use the psp-link insight combo? Or is everyone just printf debugging, and then using addr2line to decipher crashes?
~S
ps - is this going to get me source level debugging, or assembler level? |
|
| Back to top |
|
 |
snowsquirrel
Joined: 24 Feb 2008 Posts: 51
|
Posted: Thu Apr 03, 2008 10:42 am Post subject: |
|
|
Ok, I have gdb working.
1. In pspsh do a 'debug mygame.prx'.
2. From shell do a 'psp-gdb mygame.elf'
3. In gdb, do a 'target remote localhost:10001'
3. do a 'cont', not a 'star't!
Yay works. But I can't seem to get insight to work. I'll update once I figure it out.
~S |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|