Saving KDB Session Dump

Keith Owens kaos at sgi.com
Wed Apr 16 20:08:54 PDT 2003


On Tue, 15 Apr 2003 22:13:04 -0500, 
Gina and Steve Williamson <ginaisha at swbell.net> wrote:
>This is a multi-part message in MIME format.

Please use plain text.  The HTML you sent looked like spam.

>I am new to kernel debugging in Linux.  I have KDB setup and running on
>the system that I am debugging.  I am trying to save the output of the
>debug session to a text file (register dumps, unassemble data, single
>step data), but have been challenged in determing how to do this.  Any
>help would be appreciated.

If the system is still usable when you type 'go' and the amount of data
is smaller than the kernel log buffer then set LOGGING=1.  The data
will be written to the kernel log and then to syslog after you type
'go'.  In most cases, a debug session has no working I/O so the kernel
log is not written to disk and is lost.  Then you have to use a serial
console (Documentation/serial-console.txt), debug over the serial line
and capture the output on a second machine.




More information about the kdb mailing list