| View previous topic :: View next topic |
| Author |
Message |
Rex_VF5

Joined: 26 Dec 2007 Posts: 44
|
Posted: Fri Nov 28, 2008 7:05 am Post subject: Problems debugging |
|
|
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: | 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: | Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: 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"...
(gdb) target remote :10001
Remote debugging using :10001
[New Thread 0]
_start (args=0, argp=0x0) at crt0_prx.c:109
(gdb) run
Starting program: /home/rex/Programming/PSP/libupnp-1.6.6.XX/upnp/test/test_init.elf
Don't know how to run. Try "help target".
(gdb) |
What is the problem? I just want to run till a breakpoint to pinpoint the exception source... |
|
| Back to top |
|
 |
TyRaNiD
Joined: 18 Jan 2004 Posts: 918
|
Posted: Fri Nov 28, 2008 8:07 am Post subject: |
|
|
| you use continue (the c command) |
|
| Back to top |
|
 |
Rex_VF5

Joined: 26 Dec 2007 Posts: 44
|
Posted: Mon Dec 01, 2008 10:13 pm Post subject: |
|
|
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... |
|
| Back to top |
|
 |
|