Date: Sat, 12 Jan 2019 19:40:52 +0100 From: Oliver Pinter <oliver.pinter@hardenedbsd.org> To: current@freebsd.org Subject: dwarf2 today on 13-CURRENT Message-ID: <CAPQ4ffsAZDdPyArrLAMRM-YTDYP_4Lz9HP=Ve=0UmyfFa4H5Qg@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
Hi all!
According the following comment in ${SRCTOP}/sys/conf/kern.mk:
#
# Add -gdwarf-2 when compiling -g. The default starting in clang v3.4
# and gcc 4.8 is to generate DWARF version 4. However, our tools don't
# cope well with DWARF 4, so force it to genereate DWARF2, which they
# understand. Do this unconditionally as it is harmless when not needed,
# but critical for these newer versions.
#
.if ${CFLAGS:M-g} != "" && ${CFLAGS:M-gdwarf*} == ""
CFLAGS+=        -gdwarf-2
.endif
this dwarf2 limitation still exists in today's HEAD?
I mean the FreeBSD project switched to elftoolchain and mostly to LLVM
tools. LLDB is compiled by default on 13-CURRENT (~ HEAD) and the kgdb
has moved under the libexec directory, to hide them from the common
usage.
Thanks,
Oliver
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAPQ4ffsAZDdPyArrLAMRM-YTDYP_4Lz9HP=Ve=0UmyfFa4H5Qg>
