[cfe-dev] DWARFv5 by default in clang?

Adrian Prantl via cfe-dev cfe-dev at lists.llvm.org
Thu Nov 4 15:50:50 PDT 2021


> Am 11/4/21 um 3:05 PM schrieb David Blaikie <dblaikie at gmail.com>:
> 
> On Thu, Nov 4, 2021 at 3:01 PM Adrian Prantl <aprantl at apple.com <mailto:aprantl at apple.com>> wrote:
> On Darwin, we still have a sizeable number of test failures to go until we're there: https://green.lab.llvm.org/green/view/LLDB/job/lldb-cmake-matrix/ <https://green.lab.llvm.org/green/view/LLDB/job/lldb-cmake-matrix/>
> 
> I'm not sure what/where/how to read that - could you give me some pointers?

Click on any successful runs in the DWARF5 column and then on "Logs".



> 
> In any case, as I recall, Darwin had a different default for quite a while after we switched the default on other platforms to v4, so I guess we could do the same thing for v5.

Yes. I think we need to make this decision on a per-platform basis. On some platforms it may be even more nuanced. For example, when we moved macOS from DWARF v2 -> DWARF v4, we only enabled DWARF v4 on target triples with a deployment target of *-apple-macosx10.11 and higher, since various tools in the OS need to be able to understand the format. I don't know if other platforms have similar restrictions.

-- adrian

>  
> 
> -- adrian
> 
>> Am 11/4/21 um 2:58 PM schrieb David Blaikie <dblaikie at gmail.com <mailto:dblaikie at gmail.com>>:
>> 
>> Should we change Clang's default to DWARFv5?
>> 
>> (I'm motivated by having fixed a bug because I only tested with v4 - I should've tested with v5, but got me thinking about maybe v5 is just a better default at this point)
>> 
>> Google's been using v5 as the default for the better part of a year at this point - not the most debugger usage, but we validated GDB and LLDB for v5 pretty well & haven't encountered major issues since the switch.

> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20211104/62b5aa31/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: greendragonmatrix.png
Type: image/png
Size: 218841 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20211104/62b5aa31/attachment-0001.png>


More information about the cfe-dev mailing list