Skip to content

Commit 9da81ce

Browse files
authored
lldb unused var fix for NetBSD < 10. (llvm#93377)
1 parent 8c2da89 commit 9da81ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lldb/source/Plugins/Process/NetBSD/NativeThreadNetBSD.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,6 @@ void NativeThreadNetBSD::SetStepping() {
180180
}
181181

182182
std::string NativeThreadNetBSD::GetName() {
183-
Log *log = GetLog(POSIXLog::Thread);
184-
185183
#ifdef PT_LWPSTATUS
186184
struct ptrace_lwpstatus info = {};
187185
info.pl_lwpid = m_tid;
@@ -193,6 +191,8 @@ std::string NativeThreadNetBSD::GetName() {
193191
return info.pl_name;
194192
#else
195193
std::vector<struct kinfo_lwp> infos;
194+
Log *log = GetLog(POSIXLog::Thread);
195+
196196
int mib[5] = {CTL_KERN, KERN_LWP, static_cast<int>(m_process.GetID()),
197197
sizeof(struct kinfo_lwp), 0};
198198
size_t size;

0 commit comments

Comments
 (0)