poison
Joined: 14 Dec 2006 Posts: 17
|
Posted: Sat Aug 18, 2007 4:20 pm Post subject: Problem in Debugging prx with psplink + psp-gdb |
|
|
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 |
|