Program crashing, but not in psp-gdb

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

Moderators: cheriff, TyRaNiD

Post Reply
EmrldDrgn
Posts: 4
Joined: Wed May 20, 2009 5:55 am

Program crashing, but not in psp-gdb

Post by EmrldDrgn »

I'm chasing a crasher bug, but it doesn't occur when psp-gdb is connected, even if there are no breakpoints or anything. I know in a "normal" situation I could postmortem debug it, but I can't seem to find a way to do so on a PSP. Is there a way to either a), postmortem debug on a psp, or b), tell psp-gdb to stop padding things and/or default-initializing things to some value? (those are the only two reasons I can think of why gdb would stop a crash from happening). I can find information on neither of these things using google.
TyRaNiD
Posts: 907
Joined: Sun Jan 18, 2004 12:23 am

Post by TyRaNiD »

psp-gdb shouldn't do anything to your application, there is no concept of a "debugging" version of a process. And about the only way to post-mortem debug is wait for the crash to occur in psplink and use its internal debug features to see what went wrong. Of course if it is not dying in gdb is it even dying in psplink?
sauron_le_noir
Posts: 203
Joined: Sat Jul 05, 2008 8:03 am

Post by sauron_le_noir »

look at variables that are not initialize. When running under a gnu debugger normaly the uninitialized memory is padded with 0x0 values.

char *p


if (p == NULL)

under debug it is ok p is set to 0x0 but if not under debug the value of p
is what you have in your memory
Post Reply