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 include file:// URLs > that identify local filesystems whose directory structure mirrors the > webapi. The old-school /usr/lib/debug/.build-id/xx/xxxxxxxx.debug > file hierarchy doesn't match that, and of course lacks source code > entirely. > Ah, I had forgotten completely that file URLs worked out of the box (libcurl, duh). 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. So I guess, sans the format, the feature request would just be that it would have a shortcut for file URLs to produce the path directly in response to e.g. a debuginfod_find_debuginfo, rather than making a copy of the file via libcurl. Does that seem like a reasonable patch? Daniel Thornburgh | dthorn@google.com