Problem in Debugging prx with psplink + psp-gdb

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

Moderators: cheriff, TyRaNiD

Post Reply
poison
Posts: 17
Joined: Thu Dec 14, 2006 11:07 pm

Problem in Debugging prx with psplink + psp-gdb

Post by poison »

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: Select all

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: Select all

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
Post Reply