From archie@packetdesign.com  Mon Dec  3 16:40:25 2001
Return-Path: <archie@packetdesign.com>
Received: from mailman.packetdesign.com (dns.packetdesign.com [65.192.41.10])
	by hub.freebsd.org (Postfix) with ESMTP id 2549237B416
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  3 Dec 2001 16:40:10 -0800 (PST)
Received: from bubba.packetdesign.com (bubba.packetdesign.com [192.168.0.223])
	by mailman.packetdesign.com (8.11.0/8.11.0) with ESMTP id fB40e9525698
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 3 Dec 2001 16:40:09 -0800 (PST)
	(envelope-from archie@packetdesign.com)
Received: (from archie@localhost)
	by bubba.packetdesign.com (8.11.6/8.11.6) id fB40e9R31087;
	Mon, 3 Dec 2001 16:40:09 -0800 (PST)
	(envelope-from archie)
Message-Id: <200112040040.fB40e9R31087@bubba.packetdesign.com>
Date: Mon, 3 Dec 2001 16:40:09 -0800 (PST)
From: Archie Cobbs <archie@packetdesign.com>
Reply-To: Archie Cobbs <archie@packetdesign.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: developers handbook should mention debug.enter_debugger
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         32483
>Category:       docs
>Synopsis:       developers handbook should mention debug.enter_debugger
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-doc
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Dec 03 16:50:01 PST 2001
>Closed-Date:    Fri Dec 7 20:31:36 PST 2001
>Last-Modified:  Fri Dec 07 20:33:28 PST 2001
>Originator:     Archie Cobbs
>Release:        FreeBSD 4.4-STABLE i386
>Organization:
Packet Design
>Environment:
System: FreeBSD bubba.packetdesign.com 4.4-STABLE FreeBSD 4.4-STABLE #1: Mon Oct 22 15:26:21 PDT 2001 root@:/usr/obj/usr/src/sys/BUBBA i386

>Description:

	The FreeBSD developer's handbook, in the chapter on kernel
	debugging, in the sections "On-line Kernel Debugging..."
	it doesn't seem to mention that there is a very easy way
	to make the kernel drop into DDB or GDB from the command line.

	You simply say one of these commands:

		$ sysctl -w debug.enter_debugger=ddb

	or

		$ sysctl -w debug.enter_debugger=gdb

	and the kernel immediately drops into the debugger.

	Often it's more convenient to let a system boot fully
	and then do the above gdb command that trying to rig up
	gdb from the boot prompt.

>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: murray 
State-Changed-When: Fri Dec 7 20:31:36 PST 2001 
State-Changed-Why:  
Thanks for the submission!  I've added some text about this to  
section "15.4 On-Line Kernel Debugging Using DDB". 

This chapter in general needs a lot of work.  Do you think you could 
make a quick pass through the chapter and see if you can spot anything 
else that is outdated or no longer relevant?  It's not really my area 
of expertise. 


http://www.FreeBSD.org/cgi/query-pr.cgi?pr=32483 
>Unformatted:
