From owner-freebsd-current@FreeBSD.ORG Sun Mar 11 06:53:27 2007 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id AB87B16A400 for ; Sun, 11 Mar 2007 06:53:27 +0000 (UTC) (envelope-from gnn@neville-neil.com) Received: from mrout3.yahoo.com (mrout3.yahoo.com [216.145.54.173]) by mx1.freebsd.org (Postfix) with ESMTP id 97B5613C49D for ; Sun, 11 Mar 2007 06:53:27 +0000 (UTC) (envelope-from gnn@neville-neil.com) Received: from minion.local.neville-neil.com (proxy8.corp.yahoo.com [216.145.48.13]) by mrout3.yahoo.com (8.13.6/8.13.6/y.out) with ESMTP id l2B5gwSe069128; Sat, 10 Mar 2007 21:42:59 -0800 (PST) Date: Sun, 11 Mar 2007 14:42:50 +0900 Message-ID: From: gnn@freebsd.org To: Julian Elischer In-Reply-To: <45EE0D92.9090702@elischer.org> References: <45EE0D92.9090702@elischer.org> User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?ISO-8859-4?Q?Shij=F2?=) APEL/10.7 Emacs/22.0.93 (i386-apple-darwin8.8.2) MULE/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Cc: FreeBSD Current Subject: Re: remote gdb (serial) for kernel.. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Mar 2007 06:53:27 -0000 At Tue, 06 Mar 2007 16:55:46 -0800, julian wrote: > > Anyone been doing this recently? > Yes, on VMWare and Parallels only at the moment. > should I use gdb or kgdb? kgdb > neither seems to work right.. > if you have had success in doing this recently, could you let me know > what your settings have been? In my kernel config file: options KDB # Enable kernel debugger support. options DDB # Support DDB. options GDB # Support remote GDB. In /boot/loader.conf: hint.sio.1.flags=0x90 boot_gdb=1 This is on CURRENT. devbox ? sudo kgdb -r /dev/cuad1 kernel [GDB will not be able to debug user-mode threads: /usr/lib/libthread_db.so: Undefined symbol "ps_pglobal_lookup"] GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-marcel-freebsd". Switching to remote protocol Not perfect all the time but "works for me." Best, George