From owner-freebsd-current@freebsd.org Sat Jan 12 18:54:42 2019 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 81301149B297 for ; Sat, 12 Jan 2019 18:54:42 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 19C7B6B6FD for ; Sat, 12 Jan 2019 18:54:42 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: by mailman.ysv.freebsd.org (Postfix) id CE11F149B296; Sat, 12 Jan 2019 18:54:41 +0000 (UTC) Delivered-To: current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BB0EE149B295 for ; Sat, 12 Jan 2019 18:54:41 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [IPv6:2001:470:7a58:1::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "tensor.andric.com", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 501066B6FA for ; Sat, 12 Jan 2019 18:54:41 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from [IPv6:2001:470:7a58::1c5a:28c:1f7c:8c54] (unknown [IPv6:2001:470:7a58:0:1c5a:28c:1f7c:8c54]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 7820EBD2D; Sat, 12 Jan 2019 19:54:39 +0100 (CET) From: Dimitry Andric Message-Id: <70C62120-8F26-4EE6-AAA5-EBDAF7F65ACE@FreeBSD.org> Content-Type: multipart/signed; boundary="Apple-Mail=_F587CD36-97F9-4E1E-953B-A0F82775997C"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 12.2 \(3445.102.3\)) Subject: Re: dwarf2 today on 13-CURRENT Date: Sat, 12 Jan 2019 19:54:38 +0100 In-Reply-To: Cc: current@freebsd.org To: Oliver Pinter References: X-Mailer: Apple Mail (2.3445.102.3) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Jan 2019 18:54:42 -0000 --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 = 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--