![]() |
| Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact |
| ||||||
This is a discussion on Debugging on the PSP within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; I am relatively new to Telnet and GDB so can anyone link or provide a step by step tutorial on ...
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 |
![]() ![]() Developer
|
I am relatively new to Telnet and GDB so can anyone link or provide a step by step tutorial on what is needed please? Also links to the files needed for the PSP and Windows will be much appreciated.
|
|
|
|
|
|
#3 |
![]() ![]() Developer
|
Can you be more specific about what you need? Do you already have a PSPLink environment set up? If not, check this out first: http://forums.qj.net/f-psp-developme...ink-49335.html
You'll need psp-gdb, which you can get by running "toolchain.sh -e". You'll also need to add -g to your makefile compile flags in your project. To actually debug a project, connect to your PSP using PSPLink and run "debug programname.elf" then on the PC side, run "psp-gdb programname.elf", then "target remote localhost:6999" to debug over wifi or use port 10001 if you're using USB. At that point you're done with PSP specifics and any GDB tutorials/documentation will apply. |
|
|
|
|
|
#4 |
![]() ![]() Developer
|
No I don't. I was basically asking how would I set up a debugging environment from scratch.
Given that I am using DevKitPSP as my 'environment', is there any pre compiled executables that I can download? Cheers for the links. |
|
|
|
|
|
#7 |
![]() ![]() Developer
|
I think this is the only thing you'll need: psp-gdb.rar
|
|
|
|
|
|
#10 |
![]() ![]() Developer
|
Do I need a specific version of Insight for psp-gdb or is it a generic program?
Edit: Well, I gave it a shot but come up with this error on my Hello World program: Code:
P:\PSP Tools\USB HostFs>p:\devkitpsp\bin\psp-gdb eboot.elf GNU gdb 6.4 Copyright 2005 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "--host=i686-pc-cygwin --target=psp"... (gdb) target remote localhost:10001 Remote debugging using localhost:10001 Ignoring packet error, continuing... Ignoring packet error, continuing... Ignoring packet error, continuing... Malformed response to offset query, timeout (gdb) Code:
host0:/> debug ./EBOOT_Debug.elf
host0:/> PSPLink GDBServer (c) 2k6 TyRaNiD/Lovely2
GDBServer: Loaded host0:/EBOO
T_Debug.elf - UID 0x044B2875
+$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#0
0$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#0
0$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#0
0$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#0
0$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#0
0$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#0
0$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#0
0$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#0
0$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#0
0$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#0
0$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#0
0$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#0
0$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#0
0$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#0
0$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#0
0$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#0
0$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#0
0$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#0
0$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#0
0$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#0
0$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00+$QC00000000#14$QC00000000#
14$QC00000000#14$QC00000000#14$QC00000000#14$QC00000000#14$QC00000000#14$QC00000
000#14$QC00000000#14$QC00000000#14$QC00000000#14$QC00000000#14$QC00000000#14$QC0
0000000#14$QC00000000#14$QC00000000#14$QC00000000#14$QC00000000#14$QC00000000#14
$QC00000000#14$QC00000000#14$QC00000000#14$QC00000000#14$QC00000000#14$QC0000000
0#14$QC00000000#14$QC00000000#14$QC00000000#14$QC00000000#14$QC00000000#14$QC000
00000#14$QC00000000#14$QC00000000#14$QC00000000#14$QC00000000#14$QC00000000#14$Q
C00000000#14$QC00000000#14$QC00000000#14$QC00000000#14$QC00000000#14$QC00000000#
14$QC00000000#14$QC00000000#14$QC00000000#14$QC00000000#14$QC00000000#14$QC00000
000#14$QC00000000#14$QC00000000#14$QC00000000#14$QC00000000#14$QC00000000#14$QC0
0000000#14$QC00000000#14$QC00000000#14$QC00000000#14$QC00000000#14$QC00000000#14
$QC00000000#14$QC00000000#14$QC00000000#14$QC00000000#14$QC00000000#14$QC0000000
0#14$QC00000000#14$QC00000000#14$QC00000000#14$QC00000000#14$QC00000000#14$QC000
00000#14$QC00000000#14$QC00000000#14$QC00000000#14$QC00000000#14$QC00000000#14$Q
C00000000#14$QC00000000#14$QC00000000#14$QC00000000#14$QC00000000#14$QC00000000#
14$QC00000000#14$QC00000000#14$QC00000000#14$QC00000000#14$QC00000000#14$QC00000
000#14$QC00000000#14$QC00000000#14$QC00000000#14$QC00000000#14$QC00000000#14$QC0
0000000#14$QC00000000#14$QC00000000#14$QC00000000#14$QC00000000#14$QC00000000#14
$QC00000000#14$QC00000000#14$QC00000000#14$QC00000000#14$QC00000000#14$QC0000000
0#14$QC00000000#14$QC00000000#14$QC00000000#14$QC00000000#14$QC00000000#14$QC000
00000#14$QC00000000#14$QC00000000#14$QC00000000#14$QC00000000#14$QC00000000#14$Q
C00000000#14$QC00000000#14$QC00000000#14$QC00000000#14$QC00000000#14$QC00000000#
14$QC00000000#14$QC00000000#14$QC00000000#14$QC00000000#14$QC00000000#14$QC00000
000#14$QC00000000#14$QC00000000#14$QC00000000#14$QC00000000#14$QC00000000#14$QC0
0000000#14$QC00000000#14$QC00000000#14$QC00000000#14$QC00000000#14$QC00000000#14
$QC00000000#14$QC00000000#14$QC00000000#14$QC00000000#14$QC00000000#14$QC0000000
0#14$QC00000000#14$QC00000000#14$QC00000000#14$QC00000000#14$QC00000000#14$QC000
00000#14$QC00000000#14$QC00000000#14$QC00000000#14$QC00000000#14$QC00000000#14$Q
C00000000#14$QC00000000#14$QC00000000#14$QC00000000#14$QC00000000#14$QC00000000#
14$QC00000000#14$QC00000000#14$QC00000000#14$QC00000000#14$QC00000000#14$QC00000
000#14$QC00000000#14$QC00000000#14$QC00000000#14$QC00000000#14$QC00000000#14$QC0
0000000#14$QC00000000#14$QC00000000#14$QC00000000#14$QC00000000#14$QC00000000#14
$QC00000000#14$QC00000000#14$QC00000000#14$QC00000000#14$QC00000000#14$QC0000000
0#14$QC00000000#14$QC00000000#14$QC00000000#14$QC00000000#14$QC00000000#14$QC000
00000#14$QC00000000#14$QC00000000#14$QC00000000#14$QC00000000#14$QC00000000#14$Q
C00000000#14$QC00000000#14$QC00000000#14$QC00000000#14$QC00000000#14$QC00000000#
14$QC00000000#14$QC00000000#14$QC00000000#14$QC00000000#14$QC00000000#14$QC00000
000#14$QC00000000#14$QC00000000#14$QC00000000#14$QC00000000#14$QC00000000#14$QC0
0000000#14$QC00000000#14$QC00000000#14$QC00000000#14$QC00000000#14$QC00000000#14
$QC00000000#14$QC00000000#14$QC00000000#14$QC00000000#14$QC00000000#14$QC0000000
0#14$QC00000000#14$QC00000000#14$QC00000000#14$QC00000000#14$QC00000000#14$QC000
00000#14$QC00000000#14$QC00000000#14$QC00000000#14$QC00000000#14$QC00000000#14$Q
C00000000#14$QC00000000#14$QC00000000#14$QC00000000#14$QC00000000#14$QC00000000#
14$QC00000000#14$QC00000000#14$QC00000000#14$QC00000000#14$QC00000000#14$QC00000
000#14$QC00000000#14$QC00000000#14$QC00000000#14$QC00000000#14$QC00000000#14+$#0
0$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#0
0$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#0
0$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#0
0$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#0
0$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#0
0$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#0
0$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#0
0$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#0
0$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#0
0$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#0
0$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#0
0$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#0
0$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#0
0$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#0
0$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#0
0$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#0
0$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#0
0$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#0
0$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#0
0$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#0
0$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#0
0$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#0
0$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#0
0$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#0
0$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#0
0$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#0
0$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#0
0$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#0
0$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#0
0$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#0
0$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#0
0$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#0
0$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#0
0$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#0
0$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#0
0$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#0
0$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#0
0$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#0
0$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#0
0$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#0
0$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00$#00
Last edited by yaustar; 12-02-2006 at 05:51 PM.. |
|
|
|
|
|
#11 |
![]() ![]() Developer
|
That looks like some kind of incompatability between PSPLink and psp-gdb. I've got a new psp-gdb build but I'm having some trouble uploading it at the moment. I'll try again later.
Have you checked your psplink.ini file to make sure you have debugging enabled? |
|
|
|
|
|
#12 |
![]() ![]() Developer
|
I believe so:
Code:
# Example psplink configuration file. # usbmass=[0 1] Enable USB mass storage. Set to 1 to enable automatically usbmass=1 # usbhost=[0 1] Enable USB host file system. Set to 1 to enable automatically usbhost=1 # pluser=[0 1] Enable the PSPLink user module pluser=1 # resetonexit=[0 1] Specify wheher to reset psplink when sceKernelExitGame # is called resetonexit=1 # sioshell=[0 1] Specify whether to start up the sio shell sioshell=0 # kprintf=[0 1] Specify that SIO should be used for kprintf only, setting sioshell # to 1 overrides this setting. kprintf=1 # wifi=[0..N] Specify wifi should be enabled, the number is the # configuration to use if > 0 wifi=0 # wifishell=[0 1] Specify whether to start up the wifi shell wifishell=0 # usbshell=[0 1] Specify whether to start up the usb shell usbshell=1 # usbgdb=[0 1] Specify whether to use USB gdb or wifi gdb usbgdb=1 # conshell=[0 1] Specify whether to start up the console shell conshell=0 # consinterfere[0 1] Specifiy whether the consoleshell may interfere with # programs in execution consinterfere=0 # the commands that is run when buttons are pressed in the console shell conscrosscmd=ld ms0:/sprite.elf conssquarecmd=thlist constrianglecmd=modlist conscirclecmd= consselectcmd=meminfo consstartcmd=ls consdowncmd=scrshot ms0:/scshot.bmp consleftcmd=usbmoff consrightcmd=usbmon consupcmd=cop0 # prompt=... Set the psplink shell prompt # There are some escape characters, mainly %d to print the current dir prompt="%d> " # path=... Set the psplink shell path # Each path is separated by a semi-colon, you can specify up to around 128 characters # path=ms0:/apps;ms0:/ # pcterm=[0 1] Indicates whether we are using pcterm as a client or normal # tools pcterm=0 # baud=[4800..115200] Set the SIO baud rate (should only use as a last resort) # baud=115200 # modload=path Load a module on start up, repeat as necessary for more modules # Example: load the modules for networking # modload=flash0:/kd/ifhandle.prx # modload=flash0:/kd/pspnet.prx # modload=flash0:/kd/pspnet_inet.prx # modload=flash0:/kd/pspnet_apctl.prx # modload=flash0:/kd/pspnet_resolver.prx |
|
|
|
|
|
#13 |
![]() ![]() Developer
|
That looks fine to me. I'll try uploading psp.gdb again when I get home from work. I'm not real confident it'll fix your problem, but it's worth a try. Looking around on the ps2dev forums it looks like it may be caused by an outdated version of PSPLink or libusb.a on your PC.
|
|
|
|
|
|
#15 |
![]() ![]() Developer
|
I'd think newer is better, but I never went over 0.9g (or somewhere close). Do you know what version libusb.a you're using?
Here's a fresh copy of psp-gdb as of a couple hours ago: psp-gdb.exe |
|
|
|
|
|
#16 |
![]() ![]() Developer
|
http://sourceforge.net/project/showf...kage_id=157350
Whatever version was in this download. Cheers for the download, I try it later when I get back home. |
|
|
|
![]() |
| Tags |
| debugging , psp |
| Thread Tools | |
|
|