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 

How to use psp-addr2line ?

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



Joined: 14 Sep 2005
Posts: 18

PostPosted: Wed Sep 14, 2005 11:23 am    Post subject: How to use psp-addr2line ? Reply with quote

Hi, I'm doing something on my PSP and I have a problem.(sorry for my poor english)

when my program dead it shows a bus error with some addresses and values of register.
I heard i can use psp-addr2line to find out which line(or function) of my program is cause the error.
so I tested with sdk's exception sample. I did it like below.

psp-addr2line -fe exception.elf 0x889004b4

and i got this.

??
??:0

I tried this also

psp-addr2line -b elf32-littlemips -fe exception.elf 0x889004b4

and the result was same.

Please someone tell me what I did wrong.

Thanks.
Back to top
View user's profile Send private message
TyRaNiD



Joined: 18 Jan 2004
Posts: 918

PostPosted: Wed Sep 14, 2005 3:42 pm    Post subject: Reply with quote

Two possible things, one make sure you build your executable with the -g flag to get debug information and also the exception address is in kernel memory space (because of using kernel mode) but the elf is really built in user memory space so addr2line cannot find the address. Basically remove the top 8 from the address so 0x889004b4 becomes 0x089004b4
Back to top
View user's profile Send private message
JiniCho



Joined: 14 Sep 2005
Posts: 18

PostPosted: Wed Sep 14, 2005 4:59 pm    Post subject: Reply with quote

It worked!!! thank you for your help TyRaNiD
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