From q@uni.de  Sun Dec 12 10:50:41 2004
Return-Path: <q@uni.de>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP
	id 1921F16A4CE; Sun, 12 Dec 2004 10:50:41 +0000 (GMT)
Received: from wrzx28.rz.uni-wuerzburg.de (wrzx28.rz.uni-wuerzburg.de [132.187.3.28])
	by mx1.FreeBSD.org (Postfix) with ESMTP
	id A1BD443D54; Sun, 12 Dec 2004 10:50:40 +0000 (GMT)
	(envelope-from q@uni.de)
Received: from wrzx30.rz.uni-wuerzburg.de (wrzx30.rz.uni-wuerzburg.de [132.187.1.30])
	by wrzx28.rz.uni-wuerzburg.de (Postfix) with ESMTP
	id 4A842D440D; Sun, 12 Dec 2004 11:50:39 +0100 (CET)
Received: from virusscan (localhost [127.0.0.1])
	by wrzx30.rz.uni-wuerzburg.de (Postfix) with ESMTP
	id 316CA92097; Sun, 12 Dec 2004 11:50:39 +0100 (CET)
Received: from wrzx28.rz.uni-wuerzburg.de (wrzx28.rz.uni-wuerzburg.de [132.187.3.28])
	by wrzx30.rz.uni-wuerzburg.de (Postfix) with ESMTP
	id 1E2B588C02; Sun, 12 Dec 2004 11:50:39 +0100 (CET)
Received: from coyote.q.local (wwsx14.win-screen.uni-wuerzburg.de [132.187.253.14])
	by wrzx28.rz.uni-wuerzburg.de (Postfix) with ESMTP
	id 09328D440D; Sun, 12 Dec 2004 11:50:39 +0100 (CET)
Received: from coyote.q.local (localhost [127.0.0.1])
	by coyote.q.local (8.13.1/8.13.1) with ESMTP id iBCAocmi052925;
	Sun, 12 Dec 2004 11:50:38 +0100 (CET)
	(envelope-from q@coyote.q.local)
Received: (from q@localhost)
	by coyote.q.local (8.13.1/8.13.1/Submit) id iBCAoc6w052924;
	Sun, 12 Dec 2004 11:50:38 +0100 (CET)
	(envelope-from q)
Message-Id: <200412121050.iBCAoc6w052924@coyote.q.local>
Date: Sun, 12 Dec 2004 11:50:38 +0100 (CET)
From: Ulrich Spoerlein <q@uni.de>
Reply-To: Ulrich Spoerlein <q@uni.de>
To: FreeBSD-gnats-submit@freebsd.org
Cc: simokawa@freebsd.org
Subject: dcons.ko requires KDB support
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         74977
>Category:       kern
>Synopsis:       [modules] dcons.ko requires KDB support
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-firewire
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Dec 12 11:00:51 GMT 2004
>Closed-Date:    Fri Nov 25 03:53:41 GMT 2005
>Last-Modified:  Fri Nov 25 03:53:41 GMT 2005
>Originator:     Ulrich Spoerlein
>Release:        FreeBSD 5.3-RELEASE-p2 i386
>Organization:
>Environment:
System: FreeBSD coyote 5.3-RELEASE-p2
>Description:
kldload dcons will fail for the GENERIC Kernel, because the gdb_cur
symbol is missing. The module Makefile unconditionally defines KDB and
ALT_BREAK_TO_DEBUGGER

/sys/modules/dcons/Makefile:
opt_ddb.h:
        echo "#define KDB 1" > $@

opt_comconsole.h:
        echo "#define ALT_BREAK_TO_DEBUGGER 1" > $@

Therefore, on kldload you get: kernel: link_elf: symbol gdb_cur undefined

This leads to dconschat(8) becomes useless without recompiling the
kernel.
>How-To-Repeat:
Boot GENERIC, kldload dcons
>Fix:
Remove those two 'echo defines' from the Makefile, rebuild the module,
dconschat(8) starts working! :)

I don't know if this is the right fix however. Is KDB needed on the
_client_ to debug the _servers_ Kernel via dconschat?
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-firewire 
Responsible-Changed-By: arved 
Responsible-Changed-When: Mon Jun 6 17:13:12 GMT 2005 
Responsible-Changed-Why:  
over to firewire Mailinglist 

http://www.freebsd.org/cgi/query-pr.cgi?pr=74977 

From: "Cai, Quanqing" <caiquanqing@gmail.com>
To: bug-followup@FreeBSD.org, q@uni.de
Cc:  
Subject: Re: kern/74977: [modules] dcons.ko requires KDB support
Date: Thu, 24 Nov 2005 18:58:00 -0800

 It's not a bug, please carefully read man pages of dcons and dconschat agai=
 n.
 
 In your situation, you should build kernel by new way, it is described
 in handbook.
 
 If you want to use dconschat to debug remote machine, just use it, you
 don't need dcons module on local machine. There is a good example in
 man page of dconschat.
 
 If you really do want to use dcons module, you should need these debug
 options, because you want to debug the kernel, locally or remotely:),
 I think most of developers use dcons as debug purpose.
 
 BR
 Cai, Quanqing

From: "Cai, Quanqing" <caiquanqing@gmail.com>
To: bug-followup@freebsd.org
Cc:  
Subject: Re: kern/74977: [modules] dcons.ko requires KDB support
Date: Thu, 24 Nov 2005 19:02:27 -0800

 submitter's email address is invalid, please close this PR, it's not a bug.
 
 On 11/24/05, Cai, Quanqing <caiquanqing@gmail.com> wrote:
 > It's not a bug, please carefully read man pages of dcons and dconschat ag=
 ain.
 >
 > In your situation, you should build kernel by new way, it is described
 > in handbook.
 >
 > If you want to use dconschat to debug remote machine, just use it, you
 > don't need dcons module on local machine. There is a good example in
 > man page of dconschat.
 >
 > If you really do want to use dcons module, you should need these debug
 > options, because you want to debug the kernel, locally or remotely:),
 > I think most of developers use dcons as debug purpose.
 >
 > BR
 > Cai, Quanqing
 >
State-Changed-From-To: open->closed 
State-Changed-By: linimon 
State-Changed-When: Fri Nov 25 03:52:53 GMT 2005 
State-Changed-Why:  
Later respondant notes that this is by design, and submitter's email 
address now bounces. 

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