kgdb
[Top] [All Lists]

Re: how to setup a debugging environment

To: kgdb@xxxxxxxxxxx
Subject: Re: how to setup a debugging environment
From: Douglas Kilpatrick <dougk@xxxxxxxxxxx>
Date: Thu, 11 May 2000 10:35:17 -0400 (EDT)
In-reply-to: <10005110046.ZM505349@illini.engr.sgi.com>
Sender: owner-kgdb@xxxxxxxxxxx
On Thu, 11 May 2000, Scott Foehner wrote:

> Sorry, I forgot to reply to the modules part of your question in the previous
> email.  I don't believe debugging modules with the 2.2.x series of kgdb is
> possible.  It is possible to do it with the 2.3.x kernel series.  However, to

Its quite possible, as long as you don't need to look at global variables.

Load the module with "insmod foo.o | grep text", and in gdb
"add-symbol-file foo.o 0x<text segment>"

For debugging purposes, load the globals into locals.  Obviously this
plays hell on SMP, but its not like SMP is debuggable anyway.  :)


Doug
-- 
dougk@xxxxxxxxxxx
dkilpatr@xxxxxxx



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