svn commit: r291701 - head/contrib/llvm/tools/clang/tools/driver

Dimitry Andric dim at FreeBSD.org
Thu Dec 3 16:12:48 UTC 2015


On 03 Dec 2015, at 16:41, Dimitry Andric <dim at 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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 194 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freebsd.org/pipermail/svn-src-head/attachments/20151203/4f0ddf39/attachment.bin>


More information about the svn-src-head mailing list