svn commit: r292350 - head/share/mk
Ed Maste
emaste at FreeBSD.org
Wed Dec 16 19:23:11 UTC 2015
Author: emaste
Date: Wed Dec 16 19:23:10 2015
New Revision: 292350
URL: https://svnweb.freebsd.org/changeset/base/292350
Log:
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
Modified:
head/share/mk/src.opts.mk
Modified: head/share/mk/src.opts.mk
==============================================================================
--- head/share/mk/src.opts.mk Wed Dec 16 19:14:37 2015 (r292349)
+++ head/share/mk/src.opts.mk Wed Dec 16 19:23:10 2015 (r292350)
@@ -180,7 +180,6 @@ __DEFAULT_NO_OPTIONS = \
DTRACE_TESTS \
EISA \
HESIOD \
- LLDB \
NAND \
OFED \
OPENLDAP \
@@ -240,6 +239,11 @@ BROKEN_OPTIONS+=PROFILE # "sorry, unimpl
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
More information about the svn-src-head
mailing list