Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Feb 2021 12:30:09 -0300
From:      "Dr. Rolf Jansen" <freebsd-rj@obsigna.com>
To:        Ed Maste <emaste@freebsd.org>
Cc:        freebsd-arm <freebsd-arm@freebsd.org>
Subject:   Re: LLDB on FreeBSD/arm64 and arm
Message-ID:  <E2CC3F9F-75DE-41F5-83BD-0179007583C2@obsigna.com>
In-Reply-To: <CAPyFy2A_E=fJwbRoL4uj4PvyeQ_Oz0v1xTOw3tkTQvJNfO3LbQ@mail.gmail.com>
References:  <CAPyFy2A_E=fJwbRoL4uj4PvyeQ_Oz0v1xTOw3tkTQvJNfO3LbQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> Am 03.02.2021 um 14:53 schrieb Ed Maste <emaste@freebsd.org>:
>=20
> As you may know, the FreeBSD Foundation sponsored Moritz Systems to
> improve LLDB's support of non-x86 FreeBSD targets (and some other
> improvements applicable to all targets). This builds on their earlier
> work to update x86 support.
>=20
> Initial changes for arm64 and arm support were recently committed
> upstream. Details are in these code reviews, if you're interested:
>=20
> https://reviews.llvm.org/D95297 (arm64)
> https://reviews.llvm.org/D95696 (arm)
>=20
> arm and arm64 users with an interest in LLDB are encouraged to build
> LLDB from the upstream git repository, try out the support, and report
> issues or positive results.
>=20
> It should build using the regular build process as described at
> https://lldb.llvm.org/resources/build.html
>=20
> At present all four of 32- and 64-bit arm and x86 use LLDB's
> non-legacy debug support by default. Legacy support will be removed
> from LLDB upon completion of Moritz' work (once all architectures are
> patched) and there is no need to try out legacy support.

I am interested to build LLDB from the upstream repository. As a matter =
of fact a few years ago I did this already directly on a BeagleBone =
Black, however in the meantime the LLVM sources had grown beyond the =
capacity a BBB could compile. Already at that time a rather limited =
build took more than 48 hs.

I set up an ARMv7 cross building environment for kernel and world on a =
reasonably equipped i7 machine. Can I somehow use this for building LLDB =
as well?

I still have the minutes of the last successful build of LLDB on a BBB =
around. I guess the most part of this (requisites and downloads) apply =
for cross building as well. Please can somebody help me out with the =
cmake command line. What would be reasonable options besides =
-DLLVM_TARGETS_TO_BUILD=3D"ARMv7", or is it still "ARM".

I would need to somewhere specify SYSROOT, won't I? A working cmake =
command would give me jump a start, I guess. Any other hints would be =
welcome as well.

I provided ssh root access to one of my BBBs to Micha=C5=82 G=C3=B3rny =
for testing his work, and he left a LLDB on the system, I don't know at =
which stage, though. When debugging an advanced project of mine with =
this one I see some show stoppers (as with the original LLDB). Perhaps, =
I could be of help to improve LLDB.

Best regards

Rolf



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E2CC3F9F-75DE-41F5-83BD-0179007583C2>