llvm-project/lldb
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
..
bindings Create basic SBEnvironment class 2020-03-23 19:23:33 -07:00
cmake [lldb][cmake] Move remove_module_flags macro to AddLLDB.cmake 2020-03-06 17:21:24 -08:00
docs Revert "Revert "[lldb/Docs] Mark both Python 3.6 and 3.8 as supported on Windows"" 2020-03-03 20:43:16 +01:00
examples [lldb] Make gdbremote.py utility py2and3 compatible 2020-02-13 09:18:55 +01:00
include/lldb [lldb] Change Communication::SetConnection to take a unique_ptr 2020-04-02 14:42:25 +02:00
packages/Python/lldbsuite [lldb] Allow expect_expr without a running target 2020-04-01 09:39:24 +02:00
resources
scripts [lldb/Scripts] Remove swig_bot_lib/__init__.py 2020-01-16 09:15:41 -08:00
source [lldb/Support] Treat empty FileSpec as an invalid file. 2020-04-03 09:29:22 -07:00
test Have lldb-vscode update the currently selecte thread and frame when it receives a "scopes" request. 2020-04-02 18:35:17 -07:00
third_party/Python/module Increase timeout in pexpect to lower chances of tests failing under ASAN. 2019-10-10 16:16:49 +00:00
tools Have lldb-vscode update the currently selecte thread and frame when it receives a "scopes" request. 2020-04-02 18:35:17 -07:00
unittests [lldb/Support] Treat empty FileSpec as an invalid file. 2020-04-03 09:29:22 -07:00
utils [lldb]/Tablegen] Use ElementType instead of DefaultValueUnsinged 2020-03-20 18:35:13 -07:00
.clang-format
.clang-tidy [lldb] Add .clang-tidy with customization to disable readability-identifier-naming 2020-03-09 12:50:28 -07:00
.gitignore Add .noindex to the gitignore 2019-04-05 17:57:42 +00:00
CMakeLists.txt [lldb/CMake] Only CMAKE_CFG_INTDIR if it's not '.' 2020-03-27 17:49:00 -07:00
CODE_OWNERS.txt [lldb][NFC] Cleanup mentions and code related to lldb-mi 2019-07-19 15:55:23 +00:00
LICENSE.TXT
use_lldb_suite_root.py