From owner-freebsd-virtualization@FreeBSD.ORG Fri May 2 19:35:54 2014 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C65FF2EF for ; Fri, 2 May 2014 19:35:54 +0000 (UTC) Received: from hydra.pix.net (hydra.pix.net [IPv6:2001:470:e254::4]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A0BE512A9 for ; Fri, 2 May 2014 19:35:54 +0000 (UTC) Received: from torb.pix.net (torb.pix.net [IPv6:2001:470:e254:10:12dd:b1ff:febf:eca9]) (authenticated bits=0) by hydra.pix.net (8.14.5/8.14.5) with ESMTP id s42JZrDd015830; Fri, 2 May 2014 15:35:53 -0400 (EDT) (envelope-from lidl@pix.net) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.98 at mail.pix.net Message-ID: <5363F399.40709@pix.net> Date: Fri, 02 May 2014 15:35:53 -0400 From: Kurt Lidl User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: freebsd-virtualization@freebsd.org Subject: Problems with bhyve's kgdb support and loadable modules Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 May 2014 19:35:54 -0000 Is there any reasonable tutorial for using kgdb with the bvmdebug kernel option? A couple of folks I know have run into issues trying to debug a FreeBSD stable/9 kernel from their bhyve hosting machine (running stable/10). In particular, the loadable modules that are in use in the stable/9 kernel are being "troublesome" to get to the point where source-level debugging actually works. Even a pointer to a couple of "worked" examples might be useful. I've read this: http://people.freebsd.org/~jhb/papers/bsdcan/2008/article/node4.html but not all the techniques in there appear to work properly. -Kurt