https://sourceware.org/bugzilla/show_bug.cgi?id=29022

Mark Wielaard <mark at klomp dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mark at klomp dot org

--- Comment #2 from Mark Wielaard <mark at klomp dot org> ---
Theoretically you can have a totally empty source files, but they are pretty
useless and they won't even leave any debug (DWARF) data (except for an empty
line table and compiler options string), so since there is no DWARF reference
to the source file it won't even be requested by any debuginfod consumer.
executables and debug files are ELF so are never zero size.

So I think it might make some sense to investigate whether we can use the fact
that a file is zero size as negative cache indicator. It would also get rid of
the "root is special" case.

At least I cannot imagine we really want to ever return a zero sized file. But
I might not have big enough imagination. There is always some theoretically
possibility that there is a legitimate request for a zero sized file in the
future. But do we really need to worry about that? Does it prevent some future
extensions?

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

Reply via email to