aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectLog.cpp
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2022-06-23 08:08:36 -0700
committerJonas Devlieghere <jonas@devlieghere.com>2022-06-23 09:12:05 -0700
commit70841b97eb2e5c68d46b70579877e378511a47b4 (patch)
tree196777f7f081d9841fbd044fe5e25fc9321af1f5 /lldb/source/Commands/CommandObjectLog.cpp
parent09dea546692f4e9f32bf16f1a9d5d0de52a64691 (diff)
downloadllvm-70841b97eb2e5c68d46b70579877e378511a47b4.zip
llvm-70841b97eb2e5c68d46b70579877e378511a47b4.tar.gz
llvm-70841b97eb2e5c68d46b70579877e378511a47b4.tar.bz2
[lldb] Make thread safety the responsibility of the log handlers
Drop the thread-safe flag and make the locking strategy the responsibility of the individual log handler. Previously we got away with a non-thread safe mode because we were using unbuffered streams that rely on the underlying syscalls/OS for synchronization. With the introduction of log handlers, we can have arbitrary logic involved in writing out the logs. With this patch the log handlers can pick the most appropriate locking strategy for their particular implementation. Differential revision: https://reviews.llvm.org/D127922
Diffstat (limited to 'lldb/source/Commands/CommandObjectLog.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectLog.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/lldb/source/Commands/CommandObjectLog.cpp b/lldb/source/Commands/CommandObjectLog.cpp
index 190b262..91277e3 100644
--- a/lldb/source/Commands/CommandObjectLog.cpp
+++ b/lldb/source/Commands/CommandObjectLog.cpp
@@ -94,9 +94,6 @@ public:
error =
buffer_size.SetValueFromString(option_arg, eVarSetOperationAssign);
break;
- case 't':
- log_options |= LLDB_LOG_OPTION_THREADSAFE;
- break;
case 'v':
log_options |= LLDB_LOG_OPTION_VERBOSE;
break;