<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Mon, Jan 13, 2025 at 10:45 AM David Anderson via Dwarf-discuss <<a href="mailto:dwarf-discuss@lists.dwarfstd.org">dwarf-discuss@lists.dwarfstd.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 1/13/25 07:17, John DelSignore via Dwarf-discuss wrote:<br>
> Hi,<br>
> <br>
> Section 6.2 (Line Number Information) of the DWARF 5 spec does not seem to constrain which DW_LNCT content types are valid for directory entries, or at least I couldn't find where it does.<br>
> <br>
> Are DW_LNCT_directory_index, DW_LNCT_timestamp, DW_LNCT_size, and/or DW_LNCT_MD5 content types valid for directory entries? If so, what do they mean? If not, perhaps each of the DW_LNCT content types should explicitly state where it's valid.<br>
> <br>
> Cheers, John D.<br>
<br>
Version 5 page 157 Sec 6.2.4<br>
"20.file_names (sequence of file name entries)<br>
A sequence of file names and optional related information. Each entry is<br>
encoded as described by the file_name_entry_format field.<br>
<br>
Entries in this sequence describe source files that<br>
contribute to the line<br>
number information for this compilation or<br>
is used in other contexts, such as<br>
in a declaration coordinate or a macro file inclusion."<br>
<br>
I think this means that file names are file names, not<br>
directory names. Even if a directory contains only<br>
one file, there is no hint of implied search of a directory<br>
in the file_names list.<br></blockquote><div><br>I guess Jon is referring to the 16th field in the header, "directories (sequence of directory names)" which uses the same encoding system (but a separate format field, so the directories can have different active fields than the files) and there doesn't seem to be a list of what's suitable in one and not the other.<br><br>I don't feel too strongly about it - if someone finds a use case for putting the more file-centric attributes on directories, I guess more power to them? But equally having advice/suggestions if it helps someone seems fine too... <br><br>Jon - was/is it a source of confusion for you/others? </div></div></div>