mchoo7 wrote: > > Kernel debuggers, by its nature, aren't frequently used to debug kernel > > dumps from other operating systems. For example, `MacOSX-Kernel` is only > > compiled on macOS and there hasn't been any request to make it > > cross-platform. > > I disagree with that statement, unless you drop the kernel part. We certainly > support debugging XNU core dumps on non Darwin platforms. MacOSX-Kernel is > for live debugging over KDP, not core file debugging which is handled by > mach-core. That said, that doesn't need to changes the direction of this PR.
My apologies, I was wrong there. The current libfbsdvmcore (fvc) implementation is copying FreeBSD's kvm source code and making it cross-platform. The biggest problem is here is that any modifications (e.g. bug fixes) should be backported to fvc, but fvc has no update for the last five years (https://github.com/Moritz-Systems/libfbsdvmcore) while modification still happen on the FreeBSD kvm side (https://github.com/freebsd/freebsd-src/commits/main/lib/libkvm). Since fvc isn't catching up with kvm, this makes implementing new features based on newer kvm harder. (and again, developers need to test on both platforms while fvc is undertested and we don't hear any feedbacks from the fvc side) https://github.com/llvm/llvm-project/pull/181283 _______________________________________________ lldb-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits
