llvm-project/lldb/source/Host
Jonas Devlieghere d144087c96 [lldb/Support] Treat empty FileSpec as an invalid file.
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.

Differential revision: https://reviews.llvm.org/D77351
2020-04-03 09:29:22 -07:00
..
android [lldb][NFC] Fix all formatting errors in .cpp file headers 2020-01-24 08:52:55 +01:00
common [lldb/Support] Treat empty FileSpec as an invalid file. 2020-04-03 09:29:22 -07:00
freebsd [lldb/Host] s/FindProcesses/FindProcessesImpl/ in freebsd/Host.cpp 2020-03-15 20:36:40 -07:00
linux [lldb/Reproducers] Intercept the FindProcesses API 2020-03-13 09:31:35 -07:00
macosx Reapply: [Host.mm] Check for the right macro instead of inlining it 2020-04-01 15:23:07 -07:00
netbsd [lldb] [Host/NetBSD] Rename Host.cpp to HostNetBSD.cpp 2020-03-17 11:42:39 +01:00
openbsd [lldb/Reproducers] Intercept the FindProcesses API 2020-03-13 09:31:35 -07:00
posix Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
windows Recommit "[lldb] Fix TestSettings.test_pass_host_env_vars on windows" 2020-04-02 11:52:56 +02:00
CMakeLists.txt [lldb] [Host/NetBSD] Rename Host.cpp to HostNetBSD.cpp 2020-03-17 11:42:39 +01:00