[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gas/25614] dwarf-5 allows for .file 0

From: paul_robinson at playstation dot sony.com
Subject: [Bug gas/25614] dwarf-5 allows for .file 0
Date: Mon, 09 Mar 2020 13:21:13 +0000


--- Comment #9 from Paul Robinson <paul_robinson at playstation dot sony.com> 
(In reply to Nick Clifton from comment #8)
> Also - what does a file name for file 0 mean ?

My reading of the DWARF v5 spec is that file 0 specifies the root source
file (= the DW_AT_name from the compile-unit DIE).  Similarly, directory 0
specifies the compilation directory (again copied from the compile-unit DIE).

Why duplicate this information?  So that an object can have all debug info
*except* the line-table be stripped, and the line table still has all the
relevant information.  (At least, that was the justification given to the
DWARF committee in favor of making this change.)


You are receiving this mail because:
You are on the CC list for the bug.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]