[Lldb-commits] [PATCH] D75750: [lldb] integrate debuginfod
Greg Clayton via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Mon Mar 30 13:37:13 PDT 2020
clayborg added a comment.
In D75750#1949678 <https://reviews.llvm.org/D75750#1949678>, @fche2 wrote:
> In D75750#1949527 <https://reviews.llvm.org/D75750#1949527>, @labath wrote:
> > I am expecting that this feature will hook in very near to `DownloadObjectAndSymbolFile` for downloading the debug info, but it's not clear to me how would the source files fit in. Currently, debuginfod only provides an api to retrieve a single source file, so this code would have to parse all of the debug info, pry out the source files, and download them one by one -- a complicated and slow process.
> Yeah, as debuginfod does not support a batch type of source download, maybe this particular lldb site is not an ideal fit..
We can make it ideal. debuginfod has nice stuff in it and we should adapt LLDB for sure! See my SymbolServer plug-in interface in my previous comments and let me know what you think.
>> (*) Though it seems very wasteful to download all files when we are going to need only a handful of them, it may not really be that way -- we're going to be downloading all of debug info anyway, and this is going to be much larger that all of source code put together.
> I see your point, OTOH you only download the whole debuginfo because you currently have no choice. (Someday with debuginfod or such, you might be able to offload the DWARF searches, and then you won't have to download the whole thing.) We do have the choice to download sources on demand.
We should be able to make this work lazily and not having to download all files.
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
More information about the lldb-commits