From nobody@FreeBSD.org  Wed Oct 13 13:06:55 2004
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id BC2BD16A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 13 Oct 2004 13:06:55 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id AE86243D2F
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 13 Oct 2004 13:06:55 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.11/8.12.11) with ESMTP id i9DD6tFS085975
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 13 Oct 2004 13:06:55 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.11/8.12.11/Submit) id i9DD6tq6085974;
	Wed, 13 Oct 2004 13:06:55 GMT
	(envelope-from nobody)
Message-Id: <200410131306.i9DD6tq6085974@www.freebsd.org>
Date: Wed, 13 Oct 2004 13:06:55 GMT
From: John Engelhart <johne@zang.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: 5.3-BETA7 kernel config option ALT_BREAK_TO_DEBUGGER doesn't work
X-Send-Pr-Version: www-2.3

>Number:         72639
>Category:       kern
>Synopsis:       5.3-BETA7 kernel config option ALT_BREAK_TO_DEBUGGER doesn't work
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gavin
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Oct 13 13:10:23 GMT 2004
>Closed-Date:    Wed Feb 20 15:37:50 UTC 2008
>Last-Modified:  Wed Feb 20 15:37:50 UTC 2008
>Originator:     John Engelhart
>Release:        5.3-BETA7
>Organization:
>Environment:
FreeBSD new.zang.com 5.3-BETA7 FreeBSD 5.3-BETA7 #0: Mon Oct 11 00:12:17 EDT 2004     johne@new.zang.com:/usr/src/sys/i386/compile/new  i386
>Description:
The kernel config option ALT_BREAK_TO_DEBUGGER doesn't seem to work on 5.3-BETA7.

From my kernel config:

options         KDB, KDB_UNATTENDED, KDB_TRACE
options         ALT_BREAK_TO_DEBUGGER   # Use <CR>~^b to enter debugger on
                                        # the serial port
options         PANIC_REBOOT_WAIT_TIME=300

It looks like the kernel debugger parts changed from 5.2.1 to 5.3, though, and this may just be that I didn't follow all the details of what's changed.  Previously, instead of KDB, my 5.2.1 config had DDB and all worked well.

I've been having ethernet hangs and the debugger didn't seem to want to come up when I'd have the problem.  So, after the last round, I tried it when the system had rebooted and was running fine.  Didn't drop to debugger then, either.

Perhaps I missed something in the 5.2.1 to 5.3 debugger transition.  If so, can you post the simple/obvious fix to the kernel conf in case anyone else trips up on this like I did?
>How-To-Repeat:

>Fix:
      
>Release-Note:
>Audit-Trail:

From: Kris Kennaway <kris@obsecurity.org>
To: John Engelhart <johne@zang.com>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: kern/72639: 5.3-BETA7 kernel config option ALT_BREAK_TO_DEBUGGER doesn't work
Date: Wed, 13 Oct 2004 16:36:09 -0700

 On Wed, Oct 13, 2004 at 01:06:55PM +0000, John Engelhart wrote:
 
 > options         KDB, KDB_UNATTENDED, KDB_TRACE
 > options         ALT_BREAK_TO_DEBUGGER   # Use <CR>~^b to enter debugger on
 >                                         # the serial port
 > options         PANIC_REBOOT_WAIT_TIME=300
 > 
 
 > It looks like the kernel debugger parts changed from 5.2.1 to 5.3,
 > though, and this may just be that I didn't follow all the details of
 > what's changed.  Previously, instead of KDB, my 5.2.1 config had DDB
 > and all worked well.
 
 KDB is just the kernel debugging framework, it doesn't actually
 include a debugger.  You're missing DDB or GDB.  From NOTES:
 
 #
 # Compile with kernel debugger related code.
 #
 options         KDB
 
 #
 # Enable the ddb debugger backend.
 #
 options         DDB
 
 Kris
State-Changed-From-To: open->analyzed 
State-Changed-By: murray 
State-Changed-When: Sat Mar 19 03:24:33 GMT 2005 
State-Changed-Why:  
So looks like the documentation is OK and we can just close this PR? 


http://www.freebsd.org/cgi/query-pr.cgi?pr=72639 
State-Changed-From-To: analyzed->closed 
State-Changed-By: gavin 
State-Changed-When: Wed Feb 20 15:36:02 UTC 2008 
State-Changed-Why:  
Close, feedback timeout (2 years), looks like it was a local config problem. 
(spotted by vwe) 


Responsible-Changed-From-To: freebsd-bugs->gavin 
Responsible-Changed-By: gavin 
Responsible-Changed-When: Wed Feb 20 15:36:02 UTC 2008 
Responsible-Changed-Why:  
Track 

http://www.freebsd.org/cgi/query-pr.cgi?pr=72639 
>Unformatted:
