Hi Pablo,
On Sat, Jan 10, 2026 at 12:51:50AM +0000, Pablo Galindo Salgado wrote:
> > Do you support single-file split-dwarf? Where the split DWARF is in the
> > .o file together with the skeleton sections?
>
> Yes. The scanner looks for DW_UT_split_compile/DW_UT_split_type units
> regardless of file extension. The schema tracks this (is_dwp = 0 for
> .dwo or .o files).
OK. Make sense to ignore the file extension. is_dwp = 1 should
probably depend on when the file contains a .debug_tu_index or
.debug_cu_index section?
> > What if there are both separate .dwo files and a .dwp containing the
> > same ID? Is one preferred over the other?
>
> Currently ordered by mtime desc, so most recent wins. We could add
> explicit preference (e.g., prefer .dwo over .dwp) if desired.
The mtime makes sense as primary ordering.
> > How does the caching work? When you get a dwp file do you create
> > symlinks for all dwoids in it under ~/.cache/debuginfod_client/?
> > Or is libdw supposed to register/cache them?
>
> Cache path is ~/.cache/debuginfod_client/dwoid/{id}/debuginfo. No
> symlinks - the whole file is cached under the requested ID. If two
> IDs from the same .dwp are requested, it's cached twice. Simpler than
> scanning the .dwp to create symlinks, and libdw handles .dwp parsing
> anyway.
O nice. Yes. Once the application has the .dwp it would first do
further dwo id lookups through the dwp indexes. Makes sense.
> > We also just added a workflow that goes through forge.sourceware.org.
> > But nobody has used that yet. If you like you could be our first
> > contributor that uses that. If you register at
> > https://forge.sourceware.org/user/sign_up I can add you to the
> > Contributors group of https://forge.sourceware.org/elfutils/elfutils so
> > you can create a fork and merge request. Do note that this is new to
> > all of us so expect some learning required on both ends. But we are
> > happy to learn!
>
> Alright, I am happy to spearhead this workflow :) I created an account as
> instructed here: https://forge.sourceware.org/pablogsal
>
> Let me know when things are ready and I can give the fork a go!
I added the pablogsal as Contributor to the
https://forge.sourceware.org/elfutils project which I hope gives you
the power to fork the elfutils repo on the forst, push your patches
and create a merge request. If it doesn't work please yell and scream,
you are basically the first person testing out this workflow.
Thanks,
Mark