From owner-cvs-all@FreeBSD.ORG Mon May 15 11:14:36 2006 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7196616A406; Mon, 15 May 2006 11:14:36 +0000 (UTC) (envelope-from maxim@macomnet.ru) Received: from mp2.macomnet.net (mp2.macomnet.net [195.128.64.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7BB2F43D70; Mon, 15 May 2006 11:14:25 +0000 (GMT) (envelope-from maxim@macomnet.ru) Received: from localhost (localhost [127.0.0.1]) by mp2.macomnet.net (8.13.4/8.13.3) with ESMTP id k4FBEA8c071962; Mon, 15 May 2006 15:14:11 +0400 (MSD) (envelope-from maxim@macomnet.ru) Date: Mon, 15 May 2006 15:14:10 +0400 (MSD) From: Maxim Konovalov To: Sam Leffler In-Reply-To: <44232AED.9020504@errno.com> Message-ID: <20060515145944.V71191@mp2.macomnet.net> References: <200603232306.k2NN6EVk018671@repoman.freebsd.org> <44232AED.9020504@errno.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: cvs-src@FreeBSD.org, src-committers@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-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 May 2006 11:14:38 -0000 Hi Sam, On Thu, 23 Mar 2006, 15:10-0800, Sam Leffler wrote: > 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. Yes, it works: gdb% trf kdb_thr_from_pid (pid=0x0) at /usr/src/sys/kern/subr_kdb.c:394 394 { warning: Unable to find dynamic linker breakpoint function. GDB will be unable to debug shared library initializers and track explicitly loaded dynamic code. warning: shared library handler failed to enable breakpoint gdb% c Continuing. WARNING: R/W mount of / denied. Filesystem is not clean - run fsck WARNING: /home was not properly dismounted /home: mount pending error: blocks 600 files 6 WARNING: /usr was not properly dismounted /usr: mount pending error: blocks 36 files 14 WARNING: /vol0 was not properly dismounted wi0: mem 0xf8000000-0xf8000fff at device 2.0 on pci2 ... -- Maxim Konovalov