Skip to content

Commit 88591aa

Browse files
committed
[lldb] Remove lldb-repro utility
Remove lldb-repro which was used to run the test suite against a reproducer. The corresponding functionality has been removed from LLDB so there's no need for the tool anymore.
1 parent a9a8351 commit 88591aa

35 files changed

+0
-190
lines changed

lldb/test/API/lit.cfg.py

-6
Original file line numberDiff line numberDiff line change
@@ -268,12 +268,6 @@ def delete_module_cache(path):
268268
if is_configured("lldb_framework_dir"):
269269
dotest_cmd += ["--framework", config.lldb_framework_dir]
270270

271-
if (
272-
"lldb-repro-capture" in config.available_features
273-
or "lldb-repro-replay" in config.available_features
274-
):
275-
dotest_cmd += ["--skip-category=lldb-dap", "--skip-category=std-module"]
276-
277271
if "lldb-simulator-ios" in config.available_features:
278272
dotest_cmd += ["--apple-sdk", "iphonesimulator", "--platform-name", "ios-simulator"]
279273
elif "lldb-simulator-watchos" in config.available_features:

lldb/test/Shell/Driver/LocalLLDBInit.test

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# REQUIRES: python
2-
# UNSUPPORTED: lldb-repro
32
#
43
# RUN: mkdir -p %t.root
54
# RUN: mkdir -p %t.home

lldb/test/Shell/Driver/TestCore.test

-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
1-
# UNSUPPORTED: lldb-repro
2-
#
31
# RUN: not %lldb -c /bogus/path 2>&1 | FileCheck %s
42
# CHECK: error: file specified in --core (-c) option doesn't exist

lldb/test/Shell/Driver/TestError.test

-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
UNSUPPORTED: lldb-repro
21
RUN: not %lldb --arch 2>&1 | FileCheck %s
32
CHECK: error: argument to '--arch' is missing

lldb/test/Shell/Driver/TestFile.test

-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
1-
# UNSUPPORTED: lldb-repro
2-
#
31
# RUN: not %lldb -f /bogus/path 2>&1 | FileCheck %s
42
# CHECK: error: file specified in --file (-f) option doesn't exist

lldb/test/Shell/Driver/TestHelp.test

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
UNSUPPORTED: lldb-repro
2-
31
RUN: %lldb --help | FileCheck %s
42
RUN: cat %S/../../../docs/man/lldb.rst | FileCheck %s
53

lldb/test/Shell/Driver/TestPositionalArgs.test

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
UNSUPPORTED: lldb-repro
2-
31
RUN: echo "int main() { return 0; }" | %clang_host -x c - -o %t.foo
42

53
RUN: %lldb -x -b %t.foo bar baz quux | FileCheck %s

lldb/test/Shell/Driver/TestRepl.test

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# UNSUPPORTED: lldb-repro
2-
#
31
# RUN: echo ':quit' | %lldb -x --repl -O 'expr 42' -S %S/Inputs/Print2.in -o 'expr 999999' -s %s 2>&1 | FileCheck %s
42
# CHECK: {{w}}arning: commands specified to run after file load (via -o or -s) are ignored in REPL mode
53
# CHECK: (int) $0 = 42

lldb/test/Shell/Process/TestEnvironment.test

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
UNSUPPORTED: system-windows
2-
UNSUPPORTED: lldb-repro
32

43
The double quotes around "BAR" ensure we don't match the command.
54

Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
# UNSUPPORTED: system-windows
2-
# UNSUPPORTED: lldb-repro
32
# RUN: %python %S/expect_exit_code.py 226 %lldb -b -s %s
43
q -30
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
# UNSUPPORTED: system-windows
2-
# UNSUPPORTED: lldb-repro
32
# RUN: %python %S/expect_exit_code.py 30 %lldb -b -s %s
43
q 30
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
# UNSUPPORTED: system-windows
2-
# UNSUPPORTED: lldb-repro
32
# RUN: %python %S/expect_exit_code.py 10 %lldb -b -s %s
43
q 0xA

lldb/test/Shell/Register/x86-64-read.test

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# UNSUPPORTED: lldb-repro
21
# XFAIL: system-windows
32
# REQUIRES: native && target-x86_64
43
# RUN: %clangxx_host %p/Inputs/x86-64-read.cpp -o %t

lldb/test/Shell/Register/x86-64-ymm-read.test

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# UNSUPPORTED: lldb-repro
21
# XFAIL: system-windows
32
# REQUIRES: native && target-x86_64 && native-cpu-avx
43
# RUN: %clangxx_host %p/Inputs/x86-ymm-read.cpp -o %t

lldb/test/Shell/Register/x86-multithread-write.test

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# XFAIL: system-windows
22
# REQUIRES: native && (target-x86 || target-x86_64)
33
# UNSUPPORTED: system-debugserver
4-
# UNSUPPORTED: lldb-repro
54
# RUN: %clangxx_host %p/Inputs/x86-multithread-write.cpp -o %t -pthread
65
# RUN: %lldb -b -s %s %t | FileCheck %s
76

lldb/test/Shell/ScriptInterpreter/Lua/bindings.test

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# UNSUPPORTED: lldb-repro
2-
#
31
# RUN: cat %s | %lldb --script-language lua 2>&1 | FileCheck %s
42
script
53
debugger = lldb.SBDebugger.Create()

lldb/test/Shell/ScriptInterpreter/Lua/convenience_variables.test

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# UNSUPPORTED: lldb-repro
2-
#
31
# This tests that the convenience variables are not nil. Given that there is no
42
# target we only expect the debugger to be valid.
53
#

lldb/test/Shell/ScriptInterpreter/Lua/io.test

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# UNSUPPORTED: lldb-repro
2-
#
31
# RUN: rm -rf %t.stderr %t.stdout
42
# RUN: cat %s | %lldb --script-language lua 2> %t.stderr > %t.stdout
53
# RUN: cat %t.stdout | FileCheck %s --check-prefix STDOUT

lldb/test/Shell/ScriptInterpreter/Lua/lua-python.test

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# REQUIRES: python
2-
# UNSUPPORTED: lldb-repro
32

43
# RUN: mkdir -p %t
54
# RUN: cd %t

lldb/test/Shell/ScriptInterpreter/Lua/print.test

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# UNSUPPORTED: lldb-repro
2-
#
31
# RUN: rm -rf %t.stderr %t.stdout
42
# RUN: cat %s | %lldb --script-language lua 2> %t.stderr > %t.stdout
53
# RUN: cat %t.stdout | FileCheck %s --check-prefix STDOUT

lldb/test/Shell/ScriptInterpreter/Lua/quit.test

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# UNSUPPORTED: lldb-repro
2-
#
31
# RUN: cat %s | %lldb --script-language lua 2>&1 | FileCheck %s
42
script
53
print(95000 + 126)

lldb/test/Shell/ScriptInterpreter/Python/Crashlog/lit.local.cfg

-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
if 'system-darwin' not in config.available_features:
22
config.unsupported = True
33

4-
if 'lldb-repro' in config.available_features:
5-
config.unsupported = True
6-
74
config.environment["LLDB_APPLE_DSYMFORUUID_EXECUTABLE"] = ""
85

96
# Temporary parallel image loading deadlock workaround

lldb/test/Shell/ScriptInterpreter/Python/fail_breakpoint_oneline.test

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# UNSUPPORTED: lldb-repro
2-
#
31
# RUN: %lldb -s %s --script-language python 2>&1 | FileCheck %s
42
b main
53
breakpoint command add -s python -o "1234_foo"

lldb/test/Shell/ScriptInterpreter/Python/sb_address_exception.test

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# UNSUPPORTED: lldb-repro
2-
#
31
# Test that the SBAddress properties throw an exception when used outside of
42
# the interactive script interpreter.
53
#

lldb/test/Shell/ScriptInterpreter/Python/scripted_breakpoint.test

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# UNSUPPORTED: lldb-repro
2-
#
31
# Test that the scripting language argument to "breakpoint command" is honored
42
# even if the global scripting language is different.
53
#

lldb/test/Shell/ScriptInterpreter/Python/scripted_breakpoint_lua.test

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# REQUIRES: python
2-
# UNSUPPORTED: lldb-repro
32
#
43
# RUN: cat %s | %lldb --script-language lua 2>&1 | FileCheck %s
54
b main

lldb/test/Shell/Subprocess/lit.local.cfg

-2
This file was deleted.

lldb/test/Shell/SymbolFile/DWARF/x86/debug_loc.s

-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
# behavior in the invalid cases is not particularly important, but it should be
33
# "reasonable".
44

5-
# UNSUPPORTED: lldb-repro
6-
75
# RUN: llvm-mc -triple=x86_64-pc-linux -filetype=obj %s --defsym LOC=0 > %t
86
# RUN: %lldb %t -o "image lookup -v -a 0" -o "image lookup -v -a 2" \
97
# RUN: -o "image dump symfile" -o exit | FileCheck %s

lldb/test/Shell/SymbolFile/NativePDB/lit.local.cfg

-2
This file was deleted.

lldb/test/Shell/SymbolFile/PDB/lit.local.cfg

-2
This file was deleted.

lldb/test/Shell/helper/toolchain.py

-17
Original file line numberDiff line numberDiff line change
@@ -283,20 +283,3 @@ def use_support_substitutions(config):
283283
llvm_config.add_tool_substitutions(support_tools, additional_tool_dirs)
284284

285285
_disallow(config, "clang")
286-
287-
288-
def use_lldb_repro_substitutions(config, mode):
289-
lldb_init = _get_lldb_init_path(config)
290-
substitutions = [
291-
ToolSubst(
292-
"%lldb",
293-
command=FindTool("lldb-repro"),
294-
extra_args=[mode, "--no-lldbinit", "-S", lldb_init],
295-
),
296-
ToolSubst(
297-
"%lldb-init",
298-
command=FindTool("lldb-repro"),
299-
extra_args=[mode, "-S", lldb_init],
300-
),
301-
]
302-
llvm_config.add_tool_substitutions(substitutions, [config.lldb_tools_dir])

lldb/test/Shell/lit.cfg.py

-9
Original file line numberDiff line numberDiff line change
@@ -59,15 +59,6 @@
5959
config.environment["TSAN_OPTIONS"] = "halt_on_error=1"
6060

6161

62-
# Support running the test suite under the lldb-repro wrapper. This makes it
63-
# possible to capture a test suite run and then rerun all the test from the
64-
# just captured reproducer.
65-
lldb_repro_mode = lit_config.params.get("lldb-run-with-repro", None)
66-
if lldb_repro_mode:
67-
config.available_features.add("lldb-repro")
68-
lit_config.note("Running Shell tests in {} mode.".format(lldb_repro_mode))
69-
toolchain.use_lldb_repro_substitutions(config, lldb_repro_mode)
70-
7162
if config.lldb_platform_url and config.cmake_sysroot and config.enable_remote:
7263
if re.match(r".*-linux.*", config.target_triple):
7364
config.available_features.add("remote-linux")

lldb/utils/CMakeLists.txt

-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
add_subdirectory(lit-cpuid)
22
add_subdirectory(lldb-dotest)
3-
add_subdirectory(lldb-repro)

lldb/utils/lldb-repro/CMakeLists.txt

-23
This file was deleted.

lldb/utils/lldb-repro/lldb-repro.py

-86
This file was deleted.

0 commit comments

Comments
 (0)