Skip to content

Commit ba55768

Browse files
committed
Applying formatting.
1 parent ec85f0f commit ba55768

File tree

3 files changed

+21
-5
lines changed

3 files changed

+21
-5
lines changed

lldb/packages/Python/lldbsuite/test/tools/lldb-dap/dap_server.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1164,7 +1164,11 @@ def __init__(
11641164
self.process = None
11651165
if launch:
11661166
self.process = DebugAdaptorServer.launch(
1167-
executable, port=port, unix_socket=unix_socket, log_file=log_file, env=env
1167+
executable,
1168+
port=port,
1169+
unix_socket=unix_socket,
1170+
log_file=log_file,
1171+
env=env,
11681172
)
11691173

11701174
if port:

lldb/packages/Python/lldbsuite/test/tools/lldb-dap/lldbdap_testcase.py

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,18 @@ def create_debug_adaptor(self, env=None, launch=True, port=None, unix_socket=Non
3030
)
3131

3232
def build_and_create_debug_adaptor(
33-
self, lldbDAPEnv=None, lldbDAPLaunch=True, lldbDAPPort=None, lldbDAPUnixSocket=None
33+
self,
34+
lldbDAPEnv=None,
35+
lldbDAPLaunch=True,
36+
lldbDAPPort=None,
37+
lldbDAPUnixSocket=None,
3438
):
3539
self.build()
3640
self.create_debug_adaptor(
37-
lldbDAPEnv, launch=lldbDAPLaunch, port=lldbDAPPort, unix_socket=lldbDAPUnixSocket
41+
env=lldbDAPEnv,
42+
launch=lldbDAPLaunch,
43+
port=lldbDAPPort,
44+
unix_socket=lldbDAPUnixSocket,
3845
)
3946

4047
def set_source_breakpoints(self, source_path, lines, data=None):
@@ -489,7 +496,12 @@ def build_and_launch(
489496
"""Build the default Makefile target, create the DAP debug adaptor,
490497
and launch the process.
491498
"""
492-
self.build_and_create_debug_adaptor(lldbDAPEnv=lldbDAPEnv, lldbDAPLaunch=lldbDAPLaunch, lldbDAPPort=lldbDAPPort, lldbDAPUnixSocket=lldbDAPUnixSocket)
499+
self.build_and_create_debug_adaptor(
500+
lldbDAPEnv=lldbDAPEnv,
501+
lldbDAPLaunch=lldbDAPLaunch,
502+
lldbDAPPort=lldbDAPPort,
503+
lldbDAPUnixSocket=lldbDAPUnixSocket,
504+
)
493505
self.assertTrue(os.path.exists(program), "executable must exist")
494506

495507
return self.launch(

lldb/tools/lldb-dap/SourceBreakpoint.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ SourceBreakpoint::SourceBreakpoint(DAP &dap, const llvm::json::Object &obj)
2121
void SourceBreakpoint::SetBreakpoint(const llvm::StringRef source_path) {
2222
lldb::SBFileSpecList module_list;
2323
bp = dap.target.BreakpointCreateByLocation(source_path.str().c_str(), line,
24-
column, 0, module_list);
24+
column, 0, module_list);
2525
if (!logMessage.empty())
2626
SetLogMessage();
2727
Breakpoint::SetBreakpoint();

0 commit comments

Comments
 (0)