Page 1 of 1

PS2Link Debugging Tutorial

Posted: Sun Jan 28, 2007 12:34 am
by Lukasz
I wrote a short tutorial on how to debug your PS2 programs using PS2Link and ee-addr2line.

Link: http://lukasz.dk/programming/playstatio ... debugging/

I hope someone finds it useful :-)

Lukasz

Posted: Sun Jan 28, 2007 4:01 am
by ubergeek42
Wow, I never knew that that could be done, very cool, thanks.

Posted: Sun Jan 28, 2007 7:09 am
by ps2devman
Thx a lots for the tip!

Posted: Thu Feb 01, 2007 1:09 am
by ps2devman
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

Posted: Thu Feb 01, 2007 2:28 am
by Lukasz
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.

Posted: Thu Feb 01, 2007 4:20 am
by evilo
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 !