Tips on remote debugging for filesystem code

Kirk McKusick mckusick at mckusick.com
Thu Aug 24 18:26:19 UTC 2017


> To: Aijaz Baig <aijazbaig1 at gmail.com>, freebsd-fs at freebsd.org
> Subject: Re: Tips on remote debugging for filesystem code
> From: Julian Elischer <julian at freebsd.org>
> Date: Thu, 24 Aug 2017 16:24:50 +0800
> 
> On 24/8/17 1:40 pm, Aijaz Baig wrote:
> 
>> ...
>> How do you guys normally do it? Keen to hear tips and best practices
> 
> I have had more success recently using BHype to make a Virtual FreeBSD 
> machine and connecting to it using the built-in gdb interface.
> 
> Firstly it is easier than a serial interface and secondly you don't 
> need two machines.

Is there documentation that describes how to do this? I have been using
a patched up set of scripts provided by John Baldwin a couple of years
ago to use kgdb with a bhyve VM. But if there is an existing way to do
it now, I would rather switch to it.

	Kirk McKusick


More information about the freebsd-fs mailing list