 |
forums.ps2dev.org Homebrew PS2, PSP & PS3 Development Discussions
|
| View previous topic :: View next topic |
| Author |
Message |
Def Base
Joined: 17 Jul 2006 Posts: 6
|
Posted: Mon Jul 24, 2006 2:34 am Post subject: PSPLink USB debug, can't quite make it work |
|
|
Hi,
I have a bit of a problem with USB debugging with the PSPLink gdbserver. Here's what I've done so far (SuSE box, not Cygwin).
Installed the toolchain, sdk, pspgdb etc. Tested that everything works fine, which it does. I can build the gu/sprite sample from the SDK and deploy it through PSPLink, it runs on the PSP perfectly and I can start/reset PSPLink with no problems. So it all seems set up right.
So next I want to try debugging the sprite sample. I start usbhostfs_pc as root in one shell with the dir with my code in as the root. I start up PSPLink on my PSP, usbhostfs_pc reports "Connected".
I edit the makefile and add -g to cflags for the sprite sample, then make it again.
| Code: | psp-gcc -I. -I/usr/local/pspdev/psp/sdk/include -g -G0 -Wall -O2 -c -o sprite.o sprite.c
psp-gcc -I. -I/usr/local/pspdev/psp/sdk/include -g -G0 -Wall -O2 -L. -L/usr/local/pspdev/psp/sdk/lib sprite.o ball.o ../common/callbacks.o ../common/vram.o -lpspgum -lpspgu -lm -lpspdebug -lpspdisplay -lpspge -lpspctrl -lpspsdk -lc -lpspnet -lpspnet_inet -lpspnet_apctl -lpspnet_resolver -lpsputility -lpspuser -lpspkernel -o sprite.elf
psp-fixup-imports sprite.elf
psp-strip sprite.elf -o sprite_strip.elf
pack-pbp EBOOT.PBP PARAM.SFO NULL \
NULL NULL NULL \
NULL sprite_strip.elf NULL
rm -f sprite_strip.elf |
I start pcterm, this connects properly and usbhost reports connected. I then do a "debug ./sprite.elf". This outputs:
| Code: | host0:/> debug ./sprite.elf
host0:/> PSPLink GDBServer (c) 2k6 TyRaNiD/Lovely2
GDBServer: Loaded host0:/sprite.elf - UID 0x044C767F |
It also doesn't return to the host0:/ prompt afterwards, no matter what. I switch to a third shell and start psp-gdb:
| Code: | (gdb) target remote localhost:10001
Remote debugging using localhost:10001
Ignoring packet error, continuing...
[New thread 0]
0x089000e4 in ?? () |
And that's it. No matter what I can't actually get sprite.elf to load and start, for gdb to break at main or in fact anything at all.
All help appreciated, thanks. |
|
| Back to top |
|
 |
Def Base
Joined: 17 Jul 2006 Posts: 6
|
Posted: Mon Jul 24, 2006 4:11 am Post subject: |
|
|
| ok, I've solved it, sort of. If I recheck gdbdebug in usbhostfs, it keeps going to off for some reason. If I keep turning it on before I psp-gdb connect it works. Odd, but sorted. |
|
| 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
|