Date: Sat, 12 Jan 2019 19:54:38 +0100 From: Dimitry Andric <dim@FreeBSD.org> To: Oliver Pinter <oliver.pinter@hardenedbsd.org> Cc: current@freebsd.org Subject: Re: dwarf2 today on 13-CURRENT Message-ID: <70C62120-8F26-4EE6-AAA5-EBDAF7F65ACE@FreeBSD.org> In-Reply-To: <CAPQ4ffsAZDdPyArrLAMRM-YTDYP_4Lz9HP=Ve=0UmyfFa4H5Qg@mail.gmail.com> References: <CAPQ4ffsAZDdPyArrLAMRM-YTDYP_4Lz9HP=Ve=0UmyfFa4H5Qg@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--Apple-Mail=_F587CD36-97F9-4E1E-953B-A0F82775997C Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 12 Jan 2019, at 19:40, Oliver Pinter <oliver.pinter@hardenedbsd.org> = wrote: > According the following comment in ${SRCTOP}/sys/conf/kern.mk: >=20 > # > # 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} !=3D "" && ${CFLAGS:M-gdwarf*} =3D=3D "" > CFLAGS+=3D -gdwarf-2 > .endif >=20 > this dwarf2 limitation still exists in today's HEAD? >=20 > 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. See https://reviews.freebsd.org/D17930, where there is a proposed patch for this very topic. -Dimitry --Apple-Mail=_F587CD36-97F9-4E1E-953B-A0F82775997C Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.2 iF0EARECAB0WIQR6tGLSzjX8bUI5T82wXqMKLiCWowUCXDo37gAKCRCwXqMKLiCW ow+nAKCFQ4clwUlk1QS3h4OSz2EQqd5f1gCgrfHc4aMXLSKrdemwaQ9IVnqsW38= =7yED -----END PGP SIGNATURE----- --Apple-Mail=_F587CD36-97F9-4E1E-953B-A0F82775997C--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?70C62120-8F26-4EE6-AAA5-EBDAF7F65ACE>