I'm working on the NetBSD support for LLDB/LLVM. My current status is
that it already builds and runs with my local patches. Unfortunatelly
it still doesn't work due to (at least) ptrace(2) differences with the
I would like to submit the current platform support for review and to
be integrated with lldb.
Tracing current changes and constant rebasing few kLOC patch is
time-costy and heavy for me, I would like to continue development and
research how to replace the missing bits from ptrace(2) in the NetBSD
kernel, perhaps by expanding it with extra capabilities and altering
the existing code within the current diff with later patches.
What do you think?
Seems like a great idea. (Ed, is that something you might be able to review?)
Hopefully you have access to other platforms to test if it’s breaking anything? (Most likely candidates would be FreeBSD and Linux/Android, I’d suspect, depending on how much you’re having to change things).
That is just fine, you will need to submit patches prior to checking stuff in so the other FreeBSD and Linux folks can try things out to make sure things don't break on other platforms. If things diverge a lot, we might have a base pthread debugging class that can be subclassed so that FreeBSD can fix things or do things differently.
Seems like a great idea. (Ed, is that something you might be able
The first patch is already proposed:
Hopefully you have access to other platforms to test if it's
breaking anything? (Most likely candidates would be FreeBSD and
Linux/Android, I'd suspect, depending on how much you're having to
I just run just NetBSD exclusively (desktop, development). My Linux or
FreeBSD (unlikely frequent) is limited and at that places I don't
develop lldb. I don't remember when I touched other systems, perhaps
Tru64 2 years ago.
It's not that crucial anyway, as there is review board.
There is buildslave with NetBSD-7.0 in the gates. When it will be
functional, I will switch it immediately to the master lldb buildzone.
For now, I will disable running tests as I need to upstream few
plugins for NetBSD first.
Please review and merge the NetBSD pending commits in LLVM's
Phabricator, they are making it buildable for NetBSD - otherwise there
will be waste of an extra machine over there...
The NetBSD buildslave is now operational
Once it will finish building properly I will move it from the staging
buildmaster to the primary one.
At the moment it stops on: