[Lldb-commits] [PATCH] D77351: [lldb/Support] Treat empty FileSpec as an invalid file.
Jonas Devlieghere via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Thu Apr 2 17:22:36 PDT 2020
JDevlieghere created this revision.
JDevlieghere added reviewers: labath, teemperor.
LLDB relies on empty FileSpecs being invalid files, for example, they don't exists. Currently this assumption does not always hold during reproducer replay, because we pass the result of `GetPath` to the VFS. This is an empty string, which the VFS converts to an absolute directory by prepending the current working directory, before looking it up in the YAML mapping. This means that an empty FileSpec will exist when the current working directory does. This breaks at least one test (`TestAddDsymCommand.py`) when ran from replay.
This patch special cases empty FileSpecs and returns a sensible result before calling GetPath and forwarding the call.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 3878 bytes
Desc: not available
More information about the lldb-commits