Skip to content

Commit 5fd269a

Browse files
committed
Applying formatting.
1 parent 6af7bc6 commit 5fd269a

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

lldb/test/API/tools/lldb-dap/send-event/TestDAP_sendEvent.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
"""
44

55
import json
6-
import time
7-
import threading
86

97
from lldbsuite.test.decorators import *
108
from lldbsuite.test.lldbtest import *
@@ -60,5 +58,10 @@ def test_send_internal_event(self):
6058
self.set_source_breakpoints(source, [breakpoint_line])
6159
self.continue_to_next_stop()
6260

63-
resp = self.dap_server.request_evaluate("`lldb-dap send-event stopped", context="repl")
64-
self.assertRegex(resp['body']['result'], r"Invalid use of lldb-dap send-event, event \"stopped\" should be handled by lldb-dap internally.")
61+
resp = self.dap_server.request_evaluate(
62+
"`lldb-dap send-event stopped", context="repl"
63+
)
64+
self.assertRegex(
65+
resp['body']['result'],
66+
r"Invalid use of lldb-dap send-event, event \"stopped\" should be handled by lldb-dap internally."
67+
)

lldb/tools/lldb-dap/DAP.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -998,8 +998,9 @@ bool SendEventRequestHandler::DoExecute(lldb::SBDebugger debugger,
998998
if (command[1] && !llvm::StringRef(command[1]).empty()) {
999999
// See if we have to unused arguments.
10001000
if (command[2] && !llvm::StringRef(command[1]).empty()) {
1001-
result.SetError("Additional arguments found, expected `lldb-dap send-event "
1002-
"<name> <body>?`.");
1001+
result.SetError(
1002+
"Additional arguments found, expected `lldb-dap send-event "
1003+
"<name> <body>?`.");
10031004
return false;
10041005
}
10051006

0 commit comments

Comments
 (0)