lkml.org 
[lkml]   [1998]   [Sep]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 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/

\
 
 \ /
  Last update: 2005-03-22 13:44    [W:0.082 / U:1.056 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site