llvm-project/lldb/packages/Python/lldbsuite/test
Pavel Labath 8ccfcab34f [lldb/platform-gdb] Clear cached protocol state upon disconnection
Previously we would persist the flags indicating whether the remote side
supports a particular feature across reconnects, which is obviously not
a good idea.

I implement the clearing by nuking (its the only way to be sure :) the
entire GDBRemoteCommunication object in the disconnect operation and
creating a new one upon connection. This allows us to maintain a nice
invariant that the GDBRemoteCommunication object (which is now a
pointer) exists only if it is connected. The downside to that is that a
lot of functions now needs to check the validity of the pointer instead
of blindly accessing the object.

The process communication does not suffer from the same issue because we
always destroy the entire Process object for a relaunch.

Differential Revision: https://reviews.llvm.org/D116539
2022-01-10 16:27:30 +01:00
..
builders [lldb] Fix TypeError: argument of type 'NoneType' is not iterable 2021-11-30 12:41:45 -08:00
make [test] Migrate -gcc-toolchain with space separator to --gcc-toolchain= 2021-08-20 15:24:58 -07:00
test_runner [lldb] NFC: Fix trivial typo in comments, documents, and messages 2020-04-07 01:06:16 +09:00
tools Revert "Increase gdbremote timeout." 2021-11-18 15:07:30 -08:00
README-TestSuite [lldb] Reduce code duplication around inferior building 2021-10-19 12:09:41 +02:00
__init__.py
bench.py
concurrent_base.py [lldb][NFC] Remove 'from __future__ import print_function' from all tests that don't actually call 'print()' 2019-12-13 12:23:04 +01:00
configuration.py [lldb] Remove support for replaying the test suite from a reproducer 2021-09-30 10:47:19 -07:00
decorators.py [lldb] Introduce a FreeBSDKernel plugin for vmcores 2021-12-14 22:07:20 +01:00
dotest.py [lldb] Remove support for replaying the test suite from a reproducer 2021-09-30 10:47:19 -07:00
dotest_args.py [lldb] Remove support for replaying the test suite from a reproducer 2021-09-30 10:47:19 -07:00
gdbclientutils.py [lldb] Introduce PlatformQemuUser 2021-11-30 14:16:08 +01:00
lldb_pylint_helper.py
lldbbench.py
lldbdwarf.py [lldb][NFC] Delete unused and commented out DWARF constants 2021-07-26 12:26:35 -07:00
lldbgdbclient.py [lldb/platform-gdb] Clear cached protocol state upon disconnection 2022-01-10 16:27:30 +01:00
lldbinline.py [lldb/test] Allow indentation in inline tests 2021-10-28 14:39:02 +02:00
lldbpexpect.py [lldb/test] Start pexpect tests with a custom HOME 2021-09-14 15:17:10 +02:00
lldbplatform.py [lldb] Add Apple simulator platforms to lldbplatform.py 2020-11-05 15:34:42 +01:00
lldbplatformutil.py [lldb/test] Ensure launched processes are ready to be attached 2021-01-14 12:07:04 +01:00
lldbtest.py [lldb] Remove lldbtest.getBuildFlags 2021-12-30 12:19:24 +01:00
lldbtest_config.py
lldbutil.py [LLDB/test] lldbutil check_breakpoint() - check target instance 2021-11-24 11:13:17 +00:00
test_categories.py Remove the DarwinLog functionality from debguserver 2021-07-20 00:36:56 -07:00
test_result.py [lldb] [test] Rename '.categories' to 'categories' 2020-11-10 12:02:38 +01:00