From: Paul Smith via Gdb <gdb@sourceware.org>
To: gdb@sourceware.org
Subject: debuginfod: why can't it save real filenames??
Date: Wed, 04 Nov 2026 16:06:33 -0500 [thread overview]
Message-ID: <be8f2dc957fcfa876247a4ca2b52bc331c77487f.camel@gnu.org> (raw)
When I first started using debuginfod support in GDB I was delighted as
it made things much simpler.
But, the more I use it the more frustrated I am finding one specific
aspect of it: there is no possible way (that I have discovered) to
figure out what the actual library (or binary) name is, that I'm
debugging with! It's quite infuriating.
For example, if I run "info shared" I'm treated to an incomprehensible
set of buildid-based pathnames from my cache, like:
From To Syms Shared Object Library
0x00007f 0x00007f Yes /home/me/.cache/debuginfod_client/c1ce8a211.../executable
0x00007f 0x00007f Yes /home/me/.cache/debuginfod_client/b86ba1ea9.../executable
This is not useful. Even things like "info symbol xyz" show the
buildid path rather than the library name. And if I run backtrace then
the name of the library where the symbol appears is also this
unintelligible value.
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.
E.g, instead of:
~/.cache/debuginfod_client/1234567890.../executable
couldn't we have:
~/.cache/debuginfod_client/1234567890.../libsyslookup.so
?
Is this a limitation of the debuginfod client? Something GDB is doing?
Or is there an option or facility to make this better that I haven't
been able to find?
Thanks for listening!
next reply other threads:[~2026-11-04 21:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-04 21:06 Paul Smith via Gdb [this message]
2026-11-05 16:40 ` Tom Tromey
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=be8f2dc957fcfa876247a4ca2b52bc331c77487f.camel@gnu.org \
--to=gdb@sourceware.org \
--cc=psmith@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox