Debugging

From LinuxMIPS
Revision as of 23:59, 12 November 2004 by Ralf (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Debugging

Probably the most important chapter. In this chapter, I will list some commonly used debugging tips and tricks.

Kernel Oops

ksymoops is a program that deciphers all the secret numbers in a kernel core dump. Old versions of ksymoops may not work well for MIPS.

I sometimes use a script, call2sym, written by Phil Hollenback. You just cut and past the call trace part to feed the script and it will display a possible function call stack at the time crash. Note it is likely some symbols are bogus, but the real ones should be displayed. You will have to use your own judgement.

Linux 2.6 will automatically convert symbols if CONFIG_KALLSYMS is enabled. It may bloat kernels but it's a true life saver, so highly recommended.

Next page: Linux Bootup