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

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

Reply via email to