[PATCH] Use dwarf-2 by default on OpenBSD and FreeBSD

Dimitry Andric dimitry at andric.com
Thu Jun 12 14:16:33 PDT 2014


For FreeBSD, I was practically forced to revert the default to DWARF2, after many complaints from our users and developers.  The main reason is that our version of gdb is still stuck in the stone (GPLv2) age, just like our version of GNU ld (and other binutils, inasmuch we use them).  We do have lldb in the tree, but it isn't built by default, and it isn't yet feasible to use for all our architectures.

That said, I would personally have preferred dumping our old gdb, and forcing users to install the much newer gdb (7.x) port, but that wasn't acceptable, unfortunately.  There is quite a large amount of inertia, and I fear DWARF2 will still be the default for many years (basically, for the entire lifetime of FreeBSD 11.x).

-Dimitry

On 12 Jun 2014, at 20:17, Eric Christopher <echristo at gmail.com> wrote:
> Sad.
> 
> Why?
> 
> -eric
> 
> On Wed, Jun 11, 2014 at 10:39 PM, Brad Smith <brad at comstyle.com> wrote:
>> Here is a patch inspired by a patch I noticed in the FreeBSD LLVM tree to
>> utilize dwarf-2 by default on OpenBSD and FreeBSD.
>> 
>> --
>> This message has been scanned for viruses and
>> dangerous content by MailScanner, and is
>> believed to be clean.
>> 
>> 
>> _______________________________________________
>> cfe-commits mailing list
>> cfe-commits at cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>> 
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 203 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140612/7238fbc4/attachment.sig>


More information about the cfe-commits mailing list