Difference between revisions of "Debugging"
From LinuxMIPS
(→Debugging) |
|||
| Line 1: | Line 1: | ||
== Debugging == | == Debugging == | ||
| − | + | Probably the most important chapter. In this chapter, I will list some commonly used debugging tips and tricks. | |
| − | chapter, I will list some commonly used debugging tips and tricks. | + | |
| − | + | ||
Kernel Oops | Kernel Oops | ||
| − | + | ||
ksymoops is a program that deciphers all the secret numbers in a kernel core | 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. | dump. Old versions of ksymoops may not work well for MIPS. | ||
| − | + | ||
I sometimes use a script, call2sym, written by Phil Hollenback. You just cut | 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 | and past the call trace part to feed the script and it will display a possible | ||
| Line 14: | Line 13: | ||
bogus, but the real ones should be displayed. You will have to use your own | bogus, but the real ones should be displayed. You will have to use your own | ||
judgement. | 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]] | Next page: [[Linux Bootup]] | ||
Latest revision as of 23:59, 12 November 2004
[edit] 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