Subject: Re: using DDB and kgdb
To: Simon Walton <simonw@cs.ucla.edu>
From: Jason Thorpe <thorpej@nas.nasa.gov>
List: port-sparc
Date: 02/12/1997 18:06:29
On Wed, 12 Feb 1997 17:38:41 -0800 
 Simon Walton <simonw@CS.UCLA.EDU> wrote:

 >    I am attempting to debug a device driver. When the kernel
 > enters DDB, due to a memory fault, I would like to get DDB to
 > produce a core dump that I can later analyze with kgdb.
 > Unfortunately, if I call panic or dumpsys directly I seem to get
 > a stack trace different to the one active at the time of the
 > memory fault (possibly the stack for DDB). Does anyone know how
 > I can produce a normal core dump, such as if I didn't have DDB?

...just tell DDB to "continue" ... it will then proceed with
the standard panic procedure, including dumping a core file.

Jason R. Thorpe                                       thorpej@nas.nasa.gov
NASA Ames Research Center                               Home: 408.866.1912
NAS: M/S 258-6                                          Work: 415.604.0935
Moffett Field, CA 94035                                Pager: 415.428.6939