aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/Process/Linux/NativeThreadLinux.cpp
diff options
context:
space:
mode:
authorPavel Labath <pavel@labath.sk>2022-01-31 15:57:48 +0100
committerPavel Labath <pavel@labath.sk>2022-02-02 14:13:08 +0100
commita007a6d84471bb956abe10974cac3066799f583f (patch)
treebfa09e71cc1ce894d3a1e7cab572c21eeaaf4117 /lldb/source/Plugins/Process/Linux/NativeThreadLinux.cpp
parent574ad2a84626ffb0e7a64559e9862f20aadc013a (diff)
downloadllvm-a007a6d84471bb956abe10974cac3066799f583f.zip
llvm-a007a6d84471bb956abe10974cac3066799f583f.tar.gz
llvm-a007a6d84471bb956abe10974cac3066799f583f.tar.bz2
[lldb] Convert "LLDB" log channel to the new API
Diffstat (limited to 'lldb/source/Plugins/Process/Linux/NativeThreadLinux.cpp')
-rw-r--r--lldb/source/Plugins/Process/Linux/NativeThreadLinux.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/lldb/source/Plugins/Process/Linux/NativeThreadLinux.cpp b/lldb/source/Plugins/Process/Linux/NativeThreadLinux.cpp
index a5187a6..91bca7e 100644
--- a/lldb/source/Plugins/Process/Linux/NativeThreadLinux.cpp
+++ b/lldb/source/Plugins/Process/Linux/NativeThreadLinux.cpp
@@ -110,7 +110,7 @@ lldb::StateType NativeThreadLinux::GetState() { return m_state; }
bool NativeThreadLinux::GetStopReason(ThreadStopInfo &stop_info,
std::string &description) {
- Log *log(GetLogIfAllCategoriesSet(LIBLLDB_LOG_THREAD));
+ Log *log = GetLog(LLDBLog::Thread);
description.clear();
@@ -277,7 +277,7 @@ Status NativeThreadLinux::SingleStep(uint32_t signo) {
void NativeThreadLinux::SetStoppedBySignal(uint32_t signo,
const siginfo_t *info) {
- Log *log(GetLogIfAllCategoriesSet(LIBLLDB_LOG_THREAD));
+ Log *log = GetLog(LLDBLog::Thread);
LLDB_LOGF(log, "NativeThreadLinux::%s called with signal 0x%02" PRIx32,
__FUNCTION__, signo);
@@ -391,7 +391,7 @@ void NativeThreadLinux::SetStopped() {
}
void NativeThreadLinux::SetStoppedByExec() {
- Log *log(GetLogIfAllCategoriesSet(LIBLLDB_LOG_THREAD));
+ Log *log = GetLog(LLDBLog::Thread);
LLDB_LOGF(log, "NativeThreadLinux::%s()", __FUNCTION__);
SetStopped();
@@ -493,7 +493,7 @@ void NativeThreadLinux::SetExited() {
}
Status NativeThreadLinux::RequestStop() {
- Log *log(GetLogIfAllCategoriesSet(LIBLLDB_LOG_THREAD));
+ Log *log = GetLog(LLDBLog::Thread);
NativeProcessLinux &process = GetProcess();
@@ -519,7 +519,7 @@ Status NativeThreadLinux::RequestStop() {
}
void NativeThreadLinux::MaybeLogStateChange(lldb::StateType new_state) {
- Log *log(GetLogIfAllCategoriesSet(LIBLLDB_LOG_THREAD));
+ Log *log = GetLog(LLDBLog::Thread);
// If we're not logging, we're done.
if (!log)
return;