Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.

Commit b45853f

Browse files
committed
[lldb][NFC] Cleanup mentions and code related to lldb-mi
Summary: lldb-mi has been removed, but there are still a bunch of references in the code base. This patch removes all of them. Reviewers: JDevlieghere, jfb Reviewed By: JDevlieghere Subscribers: dexonsmith, ki.stfu, mgorny, abidh, jfb, lldb-commits Tags: #lldb Differential Revision: https://reviews.llvm.org/D64992 llvm-svn: 366590
1 parent 0054230 commit b45853f

File tree

117 files changed

+1
-15114
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

117 files changed

+1
-15114
lines changed

lldb/CMakeLists.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,6 @@ if(LLDB_INCLUDE_TESTS)
106106
list(APPEND LLDB_TEST_DEPS lldb-server)
107107
endif()
108108

109-
if(TARGET lldb-mi)
110-
list(APPEND LLDB_TEST_DEPS lldb-mi)
111-
endif()
112-
113109
if(TARGET lldb-vscode)
114110
list(APPEND LLDB_TEST_DEPS lldb-vscode)
115111
endif()

lldb/CODE_OWNERS.txt

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@ D: Watchpoints, Trampolines, Target, Command Interpreter, C++ / Objective-C Lang
2121
D: Expression evaluator, IR interpreter, Clang integration
2222
D: Data Formatters
2323

24-
N: Ilia K
25-
26-
D: lldb-mi
27-
2824
N: Ed Maste
2925
3026
D: FreeBSD
@@ -34,10 +30,6 @@ E: [email protected]
3430
D: ABI, Disassembler, Unwinding, iOS, debugserver, Platform, ObjectFile, SymbolFile,
3531
D: SymbolVendor, DWARF, gdb-remote
3632

37-
N: Hafiz Abid Qadeer
38-
39-
D: lldb-mi
40-
4133
N: Kamil Rytarowski
4234
4335
D: NetBSD

lldb/lit/helper/toolchain.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,6 @@ def use_lldb_substitutions(config):
1616

1717
dsname = 'debugserver' if platform.system() in ['Darwin'] else 'lldb-server'
1818
dsargs = [] if platform.system() in ['Darwin'] else ['gdbserver']
19-
lldbmi = ToolSubst('%lldbmi',
20-
command=FindTool('lldb-mi'),
21-
extra_args=['--synchronous'],
22-
unresolved='ignore')
23-
2419

2520
build_script = os.path.dirname(__file__)
2621
build_script = os.path.join(build_script, 'build.py')
@@ -43,7 +38,6 @@ def use_lldb_substitutions(config):
4338
ToolSubst('%lldb-init',
4439
command=FindTool('lldb'),
4540
extra_args=['-S', lldb_init]),
46-
lldbmi,
4741
ToolSubst('%debugserver',
4842
command=FindTool(dsname),
4943
extra_args=dsargs,
@@ -61,9 +55,6 @@ def use_lldb_substitutions(config):
6155

6256
llvm_config.add_tool_substitutions(primary_tools,
6357
[config.lldb_tools_dir])
64-
# lldb-mi always fails without Python support
65-
if lldbmi.was_resolved and not config.lldb_disable_python:
66-
config.available_features.add('lldb-mi')
6758

6859
def _use_msvc_substitutions(config):
6960
# If running from a Visual Studio Command prompt (e.g. vcvars), this will

lldb/packages/Python/lldbsuite/test/dotest.py

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -693,16 +693,11 @@ def setupSysPath():
693693
os.environ["LLDB_SRC"] = lldbsuite.lldb_root
694694

695695
pluginPath = os.path.join(scriptPath, 'plugins')
696-
toolsLLDBMIPath = os.path.join(scriptPath, 'tools', 'lldb-mi')
697696
toolsLLDBVSCode = os.path.join(scriptPath, 'tools', 'lldb-vscode')
698697
toolsLLDBServerPath = os.path.join(scriptPath, 'tools', 'lldb-server')
699698

700-
# Insert script dir, plugin dir, lldb-mi dir and lldb-server dir to the
701-
# sys.path.
699+
# Insert script dir, plugin dir and lldb-server dir to the sys.path.
702700
sys.path.insert(0, pluginPath)
703-
# Adding test/tools/lldb-mi to the path makes it easy
704-
sys.path.insert(0, toolsLLDBMIPath)
705-
# to "import lldbmi_testcase" from the MI tests
706701
# Adding test/tools/lldb-vscode to the path makes it easy to
707702
# "import lldb_vscode_testcase" from the VSCode tests
708703
sys.path.insert(0, toolsLLDBVSCode)
@@ -761,19 +756,7 @@ def setupSysPath():
761756
print("LLDB import library dir:", os.environ["LLDB_IMPLIB_DIR"])
762757
os.system('%s -v' % lldbtest_config.lldbExec)
763758

764-
# Assume lldb-mi is in same place as lldb
765-
# If not found, disable the lldb-mi tests
766-
# TODO: Append .exe on Windows
767-
# - this will be in a separate commit in case the mi tests fail horribly
768759
lldbDir = os.path.dirname(lldbtest_config.lldbExec)
769-
lldbMiExec = os.path.join(lldbDir, "lldb-mi")
770-
if is_exe(lldbMiExec):
771-
os.environ["LLDBMI_EXEC"] = lldbMiExec
772-
else:
773-
if not configuration.shouldSkipBecauseOfCategories(["lldb-mi"]):
774-
print(
775-
"The 'lldb-mi' executable cannot be located. The lldb-mi tests can not be run as a result.")
776-
configuration.skipCategories.append("lldb-mi")
777760

778761
lldbVSCodeExec = os.path.join(lldbDir, "lldb-vscode")
779762
if is_exe(lldbVSCodeExec):

lldb/packages/Python/lldbsuite/test/lldbtest.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -711,11 +711,6 @@ def setUp(self):
711711
else:
712712
self.libcxxPath = None
713713

714-
if "LLDBMI_EXEC" in os.environ:
715-
self.lldbMiExec = os.environ["LLDBMI_EXEC"]
716-
else:
717-
self.lldbMiExec = None
718-
719714
if "LLDBVSCODE_EXEC" in os.environ:
720715
self.lldbVSCodeExec = os.environ["LLDBVSCODE_EXEC"]
721716
else:

lldb/packages/Python/lldbsuite/test/test_categories.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
'dyntype': 'Tests related to dynamic type support',
3535
'stresstest': 'Tests related to stressing lldb limits',
3636
'flakey': 'Flakey test cases, i.e. tests that do not reliably pass at each execution',
37-
'lldb-mi': 'lldb-mi tests',
3837
'darwin-log': 'Darwin log tests',
3938
'watchpoint': 'Watchpoint-related tests',
4039
}

lldb/packages/Python/lldbsuite/test/tools/lldb-mi/.categories

Lines changed: 0 additions & 1 deletion
This file was deleted.

lldb/packages/Python/lldbsuite/test/tools/lldb-mi/Makefile

Lines changed: 0 additions & 5 deletions
This file was deleted.

lldb/packages/Python/lldbsuite/test/tools/lldb-mi/TestMiEnvironmentCd.py

Lines changed: 0 additions & 38 deletions
This file was deleted.

lldb/packages/Python/lldbsuite/test/tools/lldb-mi/TestMiLibraryLoaded.py

Lines changed: 0 additions & 60 deletions
This file was deleted.

lldb/packages/Python/lldbsuite/test/tools/lldb-mi/TestMiPrompt.py

Lines changed: 0 additions & 58 deletions
This file was deleted.

lldb/packages/Python/lldbsuite/test/tools/lldb-mi/breakpoint/Makefile

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)