Disassembling with gdb (Re: Linux 2.6.3-rc1)

From: Matthew Reppert
Date: Sun Feb 08 2004 - 20:55:12 EST


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

Attachment: signature.asc
Description: This is a digitally signed message part