Problems debugging

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
User avatar
Rex_VF5
Posts: 44
Joined: Wed Dec 26, 2007 6:24 am

Problems debugging

Post by Rex_VF5 »

I am trying to resolve the exception I receive (see my post http://forums.ps2dev.org/viewtopic.php?p=76524#76418). I have setup the PSPLINK and all the other stuff needed. However I cannot seem to get debugger running the target.

usbhostfs_pc is up and running. in pspsh I load my PRX:

Code: Select all

host1:/> debug test_init.prx
PSPLink USB GDBServer (c) 2k7 TyRaNiD
host1:/> Loaded host1:/test_init.prx - UID 0x04845655, Entry 0x088040AC

host1:/>
I start psp-gdb with test_init.elf and then:

Code: Select all

Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+&#58; GNU GPL version 3 or later <http&#58;//gnu.org/licenses/gpl.html>
This is free software&#58; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "--host=i686-pc-linux-gnu --target=psp"...
&#40;gdb&#41; target remote &#58;10001
Remote debugging using &#58;10001
&#91;New Thread 0&#93;
_start &#40;args=0, argp=0x0&#41; at crt0_prx.c&#58;109
&#40;gdb&#41; run
Starting program&#58; /home/rex/Programming/PSP/libupnp-1.6.6.XX/upnp/test/test_init.elf
Don't know how to run.  Try "help target".
&#40;gdb&#41;
What is the problem? I just want to run till a breakpoint to pinpoint the exception source...
TyRaNiD
Posts: 907
Joined: Sun Jan 18, 2004 12:23 am

Post by TyRaNiD »

you use continue (the c command)
User avatar
Rex_VF5
Posts: 44
Joined: Wed Dec 26, 2007 6:24 am

Post by Rex_VF5 »

TyRaNiD,

thanx for the info - I feel like a complete idiot. I am quite a newbie with Linux debugging tools and I'd swear I saw somewhere I need to 'run' the thing. With your advice I managed it to run (actually I use ddd with psp-gdb) and am approaching the problem spot. It seems to access some array at index of -1 in pthreads-emb ;-) Now to only find why...
Post Reply