diff options
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/tools/lldb-dap/dap_server.py | 9 | ||||
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/tools/lldb-dap/lldbdap_testcase.py | 4 |
2 files changed, 12 insertions, 1 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/tools/lldb-dap/dap_server.py b/lldb/packages/Python/lldbsuite/test/tools/lldb-dap/dap_server.py index 8c645e0..d1fb478 100644 --- a/lldb/packages/Python/lldbsuite/test/tools/lldb-dap/dap_server.py +++ b/lldb/packages/Python/lldbsuite/test/tools/lldb-dap/dap_server.py @@ -731,6 +731,7 @@ class DebugCommunication(object): postRunCommands=None, enableAutoVariableSummaries=False, enableSyntheticChildDebugging=False, + commandEscapePrefix="`", ): args_dict = {"program": program} if args: @@ -774,6 +775,7 @@ class DebugCommunication(object): args_dict["postRunCommands"] = postRunCommands args_dict["enableAutoVariableSummaries"] = enableAutoVariableSummaries args_dict["enableSyntheticChildDebugging"] = enableSyntheticChildDebugging + args_dict["commandEscapePrefix"] = commandEscapePrefix command_dict = {"command": "launch", "type": "request", "arguments": args_dict} response = self.send_recv(command_dict) @@ -1015,7 +1017,12 @@ class DebugCommunication(object): class DebugAdaptorServer(DebugCommunication): def __init__( - self, executable=None, port=None, init_commands=[], log_file=None, env=None + self, + executable=None, + port=None, + init_commands=[], + log_file=None, + env=None, ): self.process = None if executable is not None: diff --git a/lldb/packages/Python/lldbsuite/test/tools/lldb-dap/lldbdap_testcase.py b/lldb/packages/Python/lldbsuite/test/tools/lldb-dap/lldbdap_testcase.py index 3094b66..aa89ffe 100644 --- a/lldb/packages/Python/lldbsuite/test/tools/lldb-dap/lldbdap_testcase.py +++ b/lldb/packages/Python/lldbsuite/test/tools/lldb-dap/lldbdap_testcase.py @@ -351,6 +351,7 @@ class DAPTestCaseBase(TestBase): postRunCommands=None, enableAutoVariableSummaries=False, enableSyntheticChildDebugging=False, + commandEscapePrefix="`", ): """Sending launch request to dap""" @@ -389,6 +390,7 @@ class DAPTestCaseBase(TestBase): postRunCommands=postRunCommands, enableAutoVariableSummaries=enableAutoVariableSummaries, enableSyntheticChildDebugging=enableSyntheticChildDebugging, + commandEscapePrefix=commandEscapePrefix, ) if expectFailure: @@ -425,6 +427,7 @@ class DAPTestCaseBase(TestBase): lldbDAPEnv=None, enableAutoVariableSummaries=False, enableSyntheticChildDebugging=False, + commandEscapePrefix="`", ): """Build the default Makefile target, create the DAP debug adaptor, and launch the process. @@ -455,4 +458,5 @@ class DAPTestCaseBase(TestBase): postRunCommands=postRunCommands, enableAutoVariableSummaries=enableAutoVariableSummaries, enableSyntheticChildDebugging=enableSyntheticChildDebugging, + commandEscapePrefix=commandEscapePrefix, ) |