llvm-project/lldb/tools/driver
Jonas Devlieghere 62827737ac [lldb/Reproducer] Add version check
To ensure a reproducer works correctly, the version of LLDB used for
capture and replay must match. Right now the reproducer already contains
the LLDB version. However, this is purely informative. LLDB will happily
replay a reproducer generated with a different version of LLDB, which
can cause subtle differences.

This patch adds a version check which compares the current LLDB version
with the one in the reproducer. If the version doesn't match, LLDB will
refuse to replay. It also adds an escape hatch to make it possible to
still replay the reproducer without having to mess with the recorded
version. This might prove useful when you know two versions of LLDB
match, even though the version string doesn't. This behavior is
triggered by passing a new flag -reproducer-skip-version-check to the
lldb driver.

Differential revision: https://reviews.llvm.org/D70934
2019-12-03 07:54:42 -08:00
..
CMakeLists.txt [CMake] Configure the Info.plist so it contains a real version number. 2019-11-15 09:50:42 -08:00
Driver.cpp [lldb/Reproducer] Add version check 2019-12-03 07:54:42 -08:00
Driver.h typedef enum -> enum 2019-05-14 08:55:50 +00:00
Options.td [lldb/Reproducer] Add version check 2019-12-03 07:54:42 -08:00
Platform.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Platform.h Detect HAVE_SYS_TYPES_H in lldb 2019-08-07 06:15:01 +00:00
lldb-Info.plist.in [CMake] Configure the Info.plist so it contains a real version number. 2019-11-15 09:50:42 -08:00