aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/API/SBDebugger.cpp
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2022-06-23 08:06:17 -0700
committerJonas Devlieghere <jonas@devlieghere.com>2022-06-23 09:12:01 -0700
commit09dea546692f4e9f32bf16f1a9d5d0de52a64691 (patch)
tree79140cde59821f85766befc35340715c99e590b3 /lldb/source/API/SBDebugger.cpp
parent734ad031f16653f1b650d2ea8b7d83e8910925b3 (diff)
downloadllvm-09dea546692f4e9f32bf16f1a9d5d0de52a64691.zip
llvm-09dea546692f4e9f32bf16f1a9d5d0de52a64691.tar.gz
llvm-09dea546692f4e9f32bf16f1a9d5d0de52a64691.tar.bz2
[lldb] Support a buffered logging mode
This patch adds a buffered logging mode to lldb. A buffer size can be passed to `log enable` with the -b flag. If no buffer size is specified, logging is unbuffered. Differential revision: https://reviews.llvm.org/D127986
Diffstat (limited to 'lldb/source/API/SBDebugger.cpp')
-rw-r--r--lldb/source/API/SBDebugger.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/API/SBDebugger.cpp b/lldb/source/API/SBDebugger.cpp
index 3746998..8aa2c74 100644
--- a/lldb/source/API/SBDebugger.cpp
+++ b/lldb/source/API/SBDebugger.cpp
@@ -1621,7 +1621,7 @@ bool SBDebugger::EnableLog(const char *channel, const char **categories) {
std::string error;
llvm::raw_string_ostream error_stream(error);
return m_opaque_sp->EnableLog(channel, GetCategoryArray(categories), "",
- log_options, error_stream);
+ log_options, /*buffer_size=*/0, error_stream);
} else
return false;
}