Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Dec 2015 17:12:40 +0100
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   Re: svn commit: r291701 - head/contrib/llvm/tools/clang/tools/driver
Message-ID:  <98A73AB6-AE53-425B-826F-B6336F212E0C@FreeBSD.org>
In-Reply-To: <201512031541.tB3FfAna042742@repo.freebsd.org>
References:  <201512031541.tB3FfAna042742@repo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--Apple-Mail=_F7E7F9CF-70D3-4C07-908C-924E7900328C
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	charset=us-ascii

On 03 Dec 2015, at 16:41, Dimitry Andric <dim@FreeBSD.org> wrote:
> 
> Author: dim
> Date: Thu Dec  3 15:41:10 2015
> New Revision: 291701
> URL: https://svnweb.freebsd.org/changeset/base/291701
> 
> Log:
>  In assembler mode, clang defaulted to DWARF3, if only -g was specified.
>  Change this to DWARF2, in the simplest way possible.

Note that this problem caused some object files, such as /usr/lib/crt*.o
to contain debug information with DWARF3 version markings.  Since these
are linked into almost all executables, gdb from base would therefore
complain that it could not debug such executables.

E.g, if you were building world with DEBUG_FLAGS=-g, you should rebuild
and reinstall it, to make it debuggable with gdb from base.

Also note that lldb and gdb from ports do support DWARF3 and higher, and
are highly recommended above gdb from base.

-Dimitry


--Apple-Mail=_F7E7F9CF-70D3-4C07-908C-924E7900328C
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename=signature.asc
Content-Type: application/pgp-signature;
	name=signature.asc
Content-Description: Message signed with OpenPGP using GPGMail

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.28

iEYEARECAAYFAlZgaf0ACgkQsF6jCi4glqMW8gCgz1FjJefU/I/tY+nmOYt/akwX
iqMAnRnsZ5cUtoY7QerhrCwJUXDq1VXJ
=lBvl
-----END PGP SIGNATURE-----

--Apple-Mail=_F7E7F9CF-70D3-4C07-908C-924E7900328C--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?98A73AB6-AE53-425B-826F-B6336F212E0C>