From owner-cvs-src@FreeBSD.ORG Thu Mar 23 23:10:39 2006 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F2BAA16A401; Thu, 23 Mar 2006 23:10:38 +0000 (UTC) (envelope-from sam@errno.com) Received: from ebb.errno.com (ebb.errno.com [69.12.149.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id A81A743D48; Thu, 23 Mar 2006 23:10:38 +0000 (GMT) (envelope-from sam@errno.com) Received: from [10.0.0.248] (trouble.errno.com [10.0.0.248]) (authenticated bits=0) by ebb.errno.com (8.13.4/8.12.6) with ESMTP id k2NNAbHs007761 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 23 Mar 2006 15:10:38 -0800 (PST) (envelope-from sam@errno.com) Message-ID: <44232AED.9020504@errno.com> Date: Thu, 23 Mar 2006 15:10:37 -0800 From: Sam Leffler User-Agent: Thunderbird 1.5 (X11/20060210) MIME-Version: 1.0 To: src-committers@FreeBSD.org References: <200603232306.k2NN6EVk018671@repoman.freebsd.org> In-Reply-To: <200603232306.k2NN6EVk018671@repoman.freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/conf files src/sys/gdb gdb_cons.c gdb_int.h gdb_main.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Mar 2006 23:10:39 -0000 Sam Leffler wrote: > sam 2006-03-23 23:06:14 UTC > > FreeBSD src repository > > Modified files: > sys/conf files > sys/gdb gdb_int.h gdb_main.c > Added files: > sys/gdb gdb_cons.c > Log: > add support for copying console messages to a remote gdb To use this do something like: 1. add debug.gdbcons="1" in loader.conf 2. boot -d; gdb; step 3. attach gdb You'll see the boot messages and all console output. To turn this on/off use the debug.gdbcons sysctl. Note that console messages can cause a kernel to hang if you take away the remote gdb as the gdb packet protocol code works synchronously and doesn't have a robust way to detect when the dbg port is not being serviced. Tested only with a serial port on i386. It'd be nice if someone setup to use firewire would verify it works. I couldn't find an appropriate manual page to document this. Sam