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 

Program crashing, but not in psp-gdb

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



Joined: 20 May 2009
Posts: 4

PostPosted: Sun May 24, 2009 4:32 pm    Post subject: Program crashing, but not in psp-gdb Reply with quote

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.
Back to top
View user's profile Send private message
TyRaNiD



Joined: 18 Jan 2004
Posts: 918

PostPosted: Mon May 25, 2009 11:04 pm    Post subject: Reply with quote

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?
Back to top
View user's profile Send private message
sauron_le_noir



Joined: 05 Jul 2008
Posts: 229

PostPosted: Sat May 30, 2009 5:51 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Send e-mail MSN Messenger
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