[lldb][tests] Automatically call compute_mydir (NFC)Eliminate boilerplate of having each test manually assign to `mydir` by calling`compute_mydir` in lldbtest.py.Differential Revision: https://r
[lldb][tests] Automatically call compute_mydir (NFC)Eliminate boilerplate of having each test manually assign to `mydir` by calling`compute_mydir` in lldbtest.py.Differential Revision: https://reviews.llvm.org/D128077
show more ...
[lldb] Remove the global platform listThis patch moves the platform creation and selection logic into theper-debugger platform lists. I've tried to keep functional changes to aminimum -- the main
[lldb] Remove the global platform listThis patch moves the platform creation and selection logic into theper-debugger platform lists. I've tried to keep functional changes to aminimum -- the main (only) observable difference in this change is thatAPIs, which select a platform by name (e.g.,Debugger::SetCurrentPlatform) will not automatically pick up a platformassociated with another debugger (or no debugger at all).I've also added several tests for this functionality -- one of thepleasant consequences of the debugger isolation is that it is nowpossible to test the platform selection and creation logic.This is a product of the discussion at<https://discourse.llvm.org/t/multiple-platforms-with-the-same-name/59594>.Differential Revision: https://reviews.llvm.org/D120810
Revert "[lldb] Remove the global platform list"It makes module dependencies loopier.This reverts commits 49cffe3c7fab74252d4b6a073303c803dc1659f0 andffb9429b6f3c29ab4687b96fd85374924c98ad16.
[lldb] Replace asserts on .Success() with assertSuccess()Replace forms of `assertTrue(err.Success())` with `assertSuccess(err)` (added in D82759).* `assertSuccess` prints out the error's message
[lldb] Replace asserts on .Success() with assertSuccess()Replace forms of `assertTrue(err.Success())` with `assertSuccess(err)` (added in D82759).* `assertSuccess` prints out the error's message* `assertSuccess` expresses explicit higher level semantics, both to the reader and for test failure output* `assertSuccess` seems not to be well known, using it where possible will help spread knowledge* `assertSuccess` statements are more succinctDifferential Revision: https://reviews.llvm.org/D119616
[lldb] Introduce SBPlatform::SetSDKRootIt complements the existing SBDebugger::SetCurrentPlatformSDKRoot andallows one to set the sysroot of a platform without making it current.Differential Rev
[lldb] Introduce SBPlatform::SetSDKRootIt complements the existing SBDebugger::SetCurrentPlatformSDKRoot andallows one to set the sysroot of a platform without making it current.Differential Revision: https://reviews.llvm.org/D117550
[lldb/tests] Removed add_test_categories decorator for python API tests, NFCThere is a .categories file in the python_api directory that makes all nested testsbelong to the category "pyapi". The d
[lldb/tests] Removed add_test_categories decorator for python API tests, NFCThere is a .categories file in the python_api directory that makes all nested testsbelong to the category "pyapi". The decorator is unnecessary for these tests.
[lldb/Test] Skip tests that try to get the remote environmentWe don't support getting the remote environment. The gdb remote protocolhas no packet for that.
[lldb] Inherit host environment when running shell commandsSummary:On most hosts we were running shell commands with an empty environment.The only exception was windows, which was inheriting the
[lldb] Inherit host environment when running shell commandsSummary:On most hosts we were running shell commands with an empty environment.The only exception was windows, which was inheriting the host enviromentmostly by accident.Running the commands in an empty environment does not sound like asensible default, so this patch changes Host::RunShellCommand to inheritthe host environment. This impacts both commands run viaSBPlatform::Run (in case of host platforms), as well as the "platformshell" CLI command.Reviewers: jingham, frissSubscribers: lldb-commitsTags: #lldbDifferential Revision: https://reviews.llvm.org/D77123