Skip to content

Commit b9a063f

Browse files
committed
[lldb-dap] Removing the debugger log callback, instead use the default behavior.
The logging callback prevents `lldb> log enable -f <file> lldb api` from writing to a file and instead redirects all logging to the callback.
1 parent 8d7bba0 commit b9a063f

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lldb/tools/lldb-dap/lldb-dap.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1516,17 +1516,13 @@ void request_modules(const llvm::json::Object &request) {
15161516
// }]
15171517
// }
15181518
void request_initialize(const llvm::json::Object &request) {
1519-
auto log_cb = [](const char *buf, void *baton) -> void {
1520-
g_dap.SendOutput(OutputType::Console, llvm::StringRef{buf});
1521-
};
1522-
15231519
auto arguments = request.getObject("arguments");
15241520
// sourceInitFile option is not from formal DAP specification. It is only
15251521
// used by unit tests to prevent sourcing .lldbinit files from environment
15261522
// which may affect the outcome of tests.
15271523
bool source_init_file = GetBoolean(arguments, "sourceInitFile", true);
15281524

1529-
g_dap.debugger = lldb::SBDebugger::Create(source_init_file, log_cb, nullptr);
1525+
g_dap.debugger = lldb::SBDebugger::Create(source_init_file);
15301526
auto cmd = g_dap.debugger.GetCommandInterpreter().AddMultiwordCommand(
15311527
"lldb-dap", "Commands for managing lldb-dap.");
15321528
if (GetBoolean(arguments, "supportsStartDebuggingRequest", false)) {

0 commit comments

Comments
 (0)