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
PS2Link Debugging Tutorial
-
- Posts: 83
- Joined: Wed Jul 13, 2005 12:25 am
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
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
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.
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.