summaryrefslogtreecommitdiffstats
path: root/share/mk
diff options
context:
space:
mode:
authoremaste <emaste@FreeBSD.org>2015-12-16 19:23:10 +0000
committeremaste <emaste@FreeBSD.org>2015-12-16 19:23:10 +0000
commitce23aefc577d16933dbc35c61290d0a5c7d3d7aa (patch)
treee46aab136eaa57fe2d108c9f6649e8d1492a79bb /share/mk
parent585ca811307a645f123702324176a5531e9c3e36 (diff)
downloadFreeBSD-src-ce23aefc577d16933dbc35c61290d0a5c7d3d7aa.zip
FreeBSD-src-ce23aefc577d16933dbc35c61290d0a5c7d3d7aa.tar.gz
Enable LLDB by default on amd64 and arm64
LLDB is usable for userland core file and live debugging on amd64, and for userland core file debugging on arm64. In general it works at least as well on FreeBSD as our in-tree gdb version, so enable it by default to allow for broader use and testing. An LLDB tutorial is available at http://lldb.llvm.org/tutorial.html, and a table mapping GDB commands to LLDB commands can be found at http://lldb.llvm.org/lldb-gdb.html . LLDB also has some level of support for FreeBSD on arm, mips, i386, and powerpc, but is not yet ready to have them enabled by default. Reviewed by: gnn Relnotes: Yes
Diffstat (limited to 'share/mk')
-rw-r--r--share/mk/src.opts.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/share/mk/src.opts.mk b/share/mk/src.opts.mk
index f94e63a..65c4348 100644
--- a/share/mk/src.opts.mk
+++ b/share/mk/src.opts.mk
@@ -180,7 +180,6 @@ __DEFAULT_NO_OPTIONS = \
DTRACE_TESTS \
EISA \
HESIOD \
- LLDB \
NAND \
OFED \
OPENLDAP \
@@ -240,6 +239,11 @@ BROKEN_OPTIONS+=PROFILE # "sorry, unimplemented: profiler support for RISC-V"
BROKEN_OPTIONS+=TESTS # "undefined reference to `_Unwind_Resume'"
BROKEN_OPTIONS+=CXX # "libcxxrt.so: undefined reference to `_Unwind_Resume_or_Rethrow'"
.endif
+.if ${__T} == "aarch64" || ${__T} == "amd64"
+__DEFAULT_YES_OPTIONS+=LLDB
+.else
+__DEFAULT_NO_OPTIONS+=LLDB
+.endif
# LLVM lacks support for FreeBSD 64-bit atomic operations for ARMv4/ARMv5
.if ${__T} == "arm" || ${__T} == "armeb"
BROKEN_OPTIONS+=LLDB
OpenPOWER on IntegriCloud