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

Brad Smith brad at comstyle.com
Thu Jun 12 17:27:02 PDT 2014


On 12/06/14 8:11 PM, Eric Christopher wrote:
> On Thu, Jun 12, 2014 at 5:04 PM, Brad Smith <brad at comstyle.com> wrote:
>> On 12/06/14 2:17 PM, Eric Christopher wrote:
>>>
>>> Sad.
>>
>>
>> Yes, the real world is sad.
>>
>>> Why?
>>
>>
>> The toolchain won't be changing anytime soon (that would require an option
>> to be able to move to anyway which there isn't). The current toolchain only
>> supports DWARF-2.
>>
>
> Any way you can conditionalize this based on OS version that may have
> a newer gdb/lldb that'll support non-dwarf2? If not, that's fine.

Can you clarify what you have in mind? I'm just getting into hacking on
LLVM/Clang but I was thinking maybe having a variable in 
include/clang/Driver/ToolChain.h and lib/Driver/ToolChains.h that 
specifies the
default DWARF version and whatever the override is that way making
it easier to adjust for particular OS versions. I haven't written
anything yet it was just an idea after I sent out the initial diff.

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.




More information about the cfe-commits mailing list