lkml.org 
[lkml]   [2004]   [Feb]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectDisassembling with gdb (Re: Linux 2.6.3-rc1)
From
Date
On Sun, 2004-02-08 at 15:55, Andre Tomt wrote:
> Bartlomiej Zolnierkiewicz wrote:
> >>Unable to handle kernel virtual paging request at virtual address
> 24748b24
> >>
> >>EIP is at ide_pci_register_host_proc+0x27/0x40 [ide_core]
> >
> >
> > Can you disassemble ide_pci_register_host_proc using gdb?
>
> I'd need a walkthrough, not very familiar with gdb other than getting a
> backtrace out of it

- Go to the directory you compiled the kernel in
- do: gdb vmlinux
- you're in gdb, now do: 'x/i ide_pci_register_host_proc' This will
disassemble starting at ide_pci_register_host_proc, and needs (I
believe) debugging symbols present ... well, try it, and if gdb
complains that it can't, that's that
- Keep entering "x/i"; this will make gdb keep disassembling the next
instruction. Keep doing this until you're past
<ide_pci_register_host_proc+0x27>, I assume.
- to get out of gdb, hit ^D or type "quit"

Matt
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2005-03-22 14:00    [W:0.091 / U:0.024 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site