debuginfod: why can't it save real filenames??

Tom Tromey tom@tromey.com
Thu Nov 5 16:40:54 GMT 2026


>>>>> Paul Smith via Gdb <gdb@sourceware.org> writes:

> Of course, I understand that the directory name is the build ID value
> and that it's how we ensure uniqueness so it's required, but why can't
> the static filename "executable" be changed to the name of the library
> or program that is being represented?  Then it would be easy enough to
> understand.

Looking at the gdb code, I think the debuginfod client-side library
decides the file name:

    fd = scoped_fd (debuginfod_find_debuginfo (c, build_id, build_id_len,
					       &dname));

You may get a better answer on the elfutils list, since debuginfo is
part of that project.

thanks,
Tom


More information about the Gdb mailing list