Messages in this thread | | | Date | Wed, 16 Sep 1998 17:54:28 -0700 | From | david <> | Subject | Re: HELP - how do I disassemble kernel code? |
| |
Reply to mail from Richard Waltham about HELP - how do I disassemble kernel code? ----------------- [...] > System.map shows the following > > 001ae9a0 t scsi_times_out > 001aeac8 T request_queueable > 001aece8 T allocate_device > 001af008 T internal_cmnd > 001af108 t scsi_request_sense > 001af28c T scsi_do_cmd [...] > How can I disassemble the kernel code to see exactly where the problem is?
You need to have your uncompressed compiled kernel, usually /usr/src/linux/vmlinux. Use the following steps:
gdb /usr/src/linux/vmlinux
[...] (gdb) disassemble 0x001ae9a0 <assembler dump follows for this function>
If you compiled your kernel with -g, you could list and call by function names. Please explore to your hearts content. You may find a debugging tool such as DDD to be handy for showing structural layout and such.
-d -- Look, Windows 98 Buy, lemmings, buy! MCSE, Must Consult Someone Experienced (c) 1998 David Ford. Redistribution via the Microsoft Network is prohibited. for linux-kernel: please read linux/Documentation/* before posting problems
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |