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 

GDB issue

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



Joined: 22 Apr 2007
Posts: 17

PostPosted: Wed Sep 30, 2009 1:55 am    Post subject: GDB issue Reply with quote

I have some stuff GDB could really help me with. Low level debugging with the shell is becoming a pain.

I tried to set it up with eclipse the way that is described on the minpspw site. I also compiled my ELF with -g. However, what I get is that my threads are stuck in a running state, while I see nothing actually running on the psp. If I try to suspend any thread, GDB server crashes.

Anyone know what the issue could be? Is it possible GDB has to have a PRX so it can relocate it after the GDB server?

Thanks in advance,
Bluddy
Back to top
View user's profile Send private message
Kreationz



Joined: 18 May 2008
Posts: 53

PostPosted: Wed Sep 30, 2009 11:07 am    Post subject: Reply with quote

You are loading psp-gdb with your *.elf file as the command line switch correct?

Example:(myapp is the name of your app)
In psplink the command is: debug myapp.prx
Then start psp-gdb like this: psp-gdb myapp.elf
then in psp-gdb: target remote:10001
then: c
Your app should now be running....

Not sure if it needs a prx, but I believe so... (never tried it without one)
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