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 

PS2Link Debugging Tutorial

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



Joined: 19 Jan 2004
Posts: 248
Location: Denmark

PostPosted: Sun Jan 28, 2007 12:34 am    Post subject: PS2Link Debugging Tutorial Reply with quote

I wrote a short tutorial on how to debug your PS2 programs using PS2Link and ee-addr2line.

Link: http://lukasz.dk/programming/playstation-2/ps2link-debugging/

I hope someone finds it useful :-)

Lukasz
_________________
Lukasz.dk
Back to top
View user's profile Send private message Visit poster's website
ubergeek42



Joined: 13 Jul 2005
Posts: 83

PostPosted: Sun Jan 28, 2007 4:01 am    Post subject: Reply with quote

Wow, I never knew that that could be done, very cool, thanks.
Back to top
View user's profile Send private message AIM Address MSN Messenger
ps2devman



Joined: 09 Oct 2006
Posts: 265

PostPosted: Sun Jan 28, 2007 7:09 am    Post subject: Reply with quote

Thx a lots for the tip!
Back to top
View user's profile Send private message
ps2devman



Joined: 09 Oct 2006
Posts: 265

PostPosted: Thu Feb 01, 2007 1:09 am    Post subject: Reply with quote

I have a question related to compilation error messages.

Let's say I have 2 c modules. I implement function Scales() (typo error) in one, and I call function Scale() in the other one. I declare function Scale() in header included by both, so no compilation error occurs before linking.

ld then fires an error and tells me there is a link error without any info.
That case is very annoying. Each time it happens I get no idea what is the missing function, according to ld, so I spend a lots of time commenting code in order to find out the call that calls missing function.

Am I missing a flag or something in makefile?
I use EE_CFLAGS += -g
Back to top
View user's profile Send private message
Lukasz



Joined: 19 Jan 2004
Posts: 248
Location: Denmark

PostPosted: Thu Feb 01, 2007 2:28 am    Post subject: Reply with quote

You are talking compilation time error and not runtime, which the tutorial I wrote is about.

When you get an undefined reference, you get which object file it is in and what you the undefined function you are trying to link against. Based on this information, you should be able to locate your problem.

But like I said, compliation problem, not runtime.
_________________
Lukasz.dk
Back to top
View user's profile Send private message Visit poster's website
evilo



Joined: 22 Apr 2004
Posts: 230

PostPosted: Thu Feb 01, 2007 4:20 am    Post subject: Reply with quote

duh...

Until now, I was still disassembling my code to find an error using ee-objdump...

I cannot beleive it's so easy with ee-addr2line, thank you very much for the great tip !
_________________
http://psxdev.info/evilo/
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 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