[Lldb-commits] [PATCH] D97786: LLDB: Use path relative to binary, not relative to debugger CWD, for finding .dwo files.

Pavel Labath via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Thu Mar 4 05:36:03 PST 2021


labath added a comment.

Having a setting for this would not be unreasonable.

But what about reusing an existing setting for this purpose? I thinking of the (global) `target.debug-file-search-paths` setting and the associated logic (`Symbols::LocateExecutableSymbolFile` and friends). If we used this mechanism, then dwo files would be found automatically, as (I believe) the directory containing the executable file is being always searched, even with an empty setting. And this function is already being used to locate the dwp file, which is why we are able to find the dwp file next to the executable, regardless of the cwd.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D97786/new/

https://reviews.llvm.org/D97786



More information about the lldb-commits mailing list