Skip to content

lldb unused var fix for NetBSD < 10. #93377

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lldb/source/Plugins/Process/NetBSD/NativeThreadNetBSD.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down
Loading