kgdb
[Top] [All Lists]

Re: kgdb and modules

To: Brian Boerner <brian_boerner@xxxxxxxxxxxxxxx>
Subject: Re: kgdb and modules
From: Douglas Kilpatrick <dougk@xxxxxxxxxxx>
Date: Fri, 27 Oct 2000 13:22:52 -0400 (EDT)
Cc: kgdb@xxxxxxxxxxx
In-reply-to: <39F9AE39.338BB421@xxxxxxxxxxxxxxx>
Sender: owner-kgdb@xxxxxxxxxxx
On Fri, 27 Oct 2000, Brian Boerner wrote:

> I'm using kgdb and want to debug a module that's causing an oops.

>From system:

# insmod -m foo.o 2>&1 | grep '\.text\>'

>From gdb:

(gdb) add-symbol-file ../foo.o 0xc482b050

where 0xc482b050 is the address given for the .text segment by the insmod
command.

You will want to use gdb version 5 if you want to be able to look at
global variables, and of course, compile with -g.


Doug
-- 
dougk@xxxxxxxxxxx
dkilpatr@xxxxxxx



<Prev in Thread] Current Thread [Next in Thread>