lldb unused var fix for NetBSD < 10. (#93377)

This commit is contained in:
David CARLIER 2024-05-25 15:49:42 +01:00 committed by GitHub
parent 8c2da89ec4
commit 9da81cee21
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -180,8 +180,6 @@ void NativeThreadNetBSD::SetStepping() {
}
std::string NativeThreadNetBSD::GetName() {
Log *log = GetLog(POSIXLog::Thread);
#ifdef PT_LWPSTATUS
struct ptrace_lwpstatus info = {};
info.pl_lwpid = m_tid;
@ -193,6 +191,8 @@ std::string NativeThreadNetBSD::GetName() {
return info.pl_name;
#else
std::vector<struct kinfo_lwp> infos;
Log *log = GetLog(POSIXLog::Thread);
int mib[5] = {CTL_KERN, KERN_LWP, static_cast<int>(m_process.GetID()),
sizeof(struct kinfo_lwp), 0};
size_t size;