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 

Problem in Debugging prx with psplink + psp-gdb

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



Joined: 14 Dec 2006
Posts: 17

PostPosted: Sat Aug 18, 2007 4:20 pm    Post subject: Problem in Debugging prx with psplink + psp-gdb Reply with quote

I got static elf worked well in the usbhostfs + psplink + psp-gdb debug environment, I could add breakpoint/memory monitor or change variable etc. but on luck in prx module debugging..
here is my step:
launch psplink 3.0 OE in PSP
start usbhostfs_pc and use pspsh to get the shell
type debug ./XXX.prx
then gdb ./XXX.elf and target to 127.0.0.1:10001(actually I got Eclipse to do this for me)
if I define the stop point in startup at "module_start"(_start), I got
Code:

Previous frame identical to this frame (corrupt stack?)

and no any other signal
if I define it "main_thread"(I know it's wrong), I got
Code:

Previous frame identical to this frame (corrupt stack?)
[Switching to thread 60432969]
warning: GDB can't find the start of the function at 0x88267d28.
Previous frame identical to this frame (corrupt stack?)
warning: GDB can't find the start of the function at 0x88267d28.
Previous frame identical to this frame (corrupt stack?)

It said "Suspended: Signal 'SIGTRAP' received."

could somebody figure out what's the wrong? thx
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