Hi elfutils-devel@,
I've been working on adding debuginfod support to various LLVM utilities,
while simultaneously setting up production use of debuginfod for a managed
developer environment.
One issue that keeps cropping up is that there's often quite a few places
to get debug files from locally
On Wed, 2023-05-31 at 15:17 -0700, Daniel Thornburgh via Elfutils-devel
wrote:
> This isn't the case for files available locally, but there is some
> prior art: GDB's build ID directory layout (commonly
> `/usr/lib/debug/.build-id// build ID>`). GDB has a flag to control this (`--with-separate-debu
Hi -
> [...]
> It would be really nice if there were, a DEBUGINFOD_LOCAL_PATH environment
> variable that provided a colon-separated list of directories in the GDB
> `.build-id//` [...]
Please note that $DEBUGINFOD_URLS can already include file:// URLs
that identify local filesystems whose direct
On Wed, May 31, 2023 at 3:35 PM Frank Ch. Eigler wrote:
> > [...]
> > It would be really nice if there were, a DEBUGINFOD_LOCAL_PATH
> environment
> > variable that provided a colon-separated list of directories in the GDB
> > `.build-id//` [...]
>
> Please note that $DEBUGINFOD_URLS can already
Hi -
> Ah, I had forgotten completely that file URLs worked out of the box
> (libcurl, duh).
Yeah.
> When we tried that way back when, the issue was just that it
> actually does a libcurl fetch out of that path and saves another
> copy of the file into the cache.
Yes, a copy is made. This is "
In elfutils, the libdwfl library is responsible for the "library for
obtaining debug info writ large" stuff. It provides API parsers
for command-line arguments that mesh with its library stuff like
Dwfl_Callbacks that set the search path used equivalently to GDB's `set
debug-file-directory` path.