gdb in CURRENT cannot debug userland cores, when is kernel lldb coming?

Warner Losh imp at bsdimp.com
Wed Jun 11 19:34:19 UTC 2014


On Jun 11, 2014, at 12:53 PM, Craig Rodrigues <rodrigc at FreeBSD.org> wrote:

> Hi,
> 
> Recently when trying to debug some coredumps in CURRENT from
> a userland process in the devel/libvirt port, I found that the gdb in
> base could not get a backtrace from the core file:
> 
> http://lists.freebsd.org/pipermail/freebsd-virtualization/2014-June/002606.html
> 
> I needed to add to my /etc/src.conf WITH_LLDB=yes
> and compile and install lldb, which *could* analyze the coredump.
> 
> I realize that gdb in base is on its way out the door, and that
> clang and lldb are the new world order.  However, one of the
> main blockers for removing gdb from base is that
> there is no equivalent to kgdb in the lldb world.
> 
> Is anyone working on a kernel lldb?  When is it expected to be ready?
> Will something like it be ready by end of 2014?
> 
> Even though this may not be an issue in the stable/10 branch,
> it would be nice to have a kernel lldb debugger ready by
> the next 10.1R if possible.

Except for kgdb functionality, the gdb ports (both the 6.x and 7.x ones) work much better than the gdb in the tree. This may be a good stop-gap until lldb is ready.

Warner

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 842 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freebsd.org/pipermail/freebsd-arch/attachments/20140611/bf826b43/attachment.sig>


More information about the freebsd-arch mailing list