forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Problems debugging

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
Rex_VF5



Joined: 26 Dec 2007
Posts: 44

PostPosted: Fri Nov 28, 2008 7:05 am    Post subject: Problems debugging Reply with quote

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
View user's profile Send private message
TyRaNiD



Joined: 18 Jan 2004
Posts: 918

PostPosted: Fri Nov 28, 2008 8:07 am    Post subject: Reply with quote

you use continue (the c command)
Back to top
View user's profile Send private message
Rex_VF5



Joined: 26 Dec 2007
Posts: 44

PostPosted: Mon Dec 01, 2008 10:13 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
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