summaryrefslogtreecommitdiffstats
path: root/lldb/source/Host/freebsd/HostThreadFreeBSD.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Host/freebsd/HostThreadFreeBSD.cpp')
-rw-r--r--lldb/source/Host/freebsd/HostThreadFreeBSD.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lldb/source/Host/freebsd/HostThreadFreeBSD.cpp b/lldb/source/Host/freebsd/HostThreadFreeBSD.cpp
index f1954875f9a..4f3fd312cc9 100644
--- a/lldb/source/Host/freebsd/HostThreadFreeBSD.cpp
+++ b/lldb/source/Host/freebsd/HostThreadFreeBSD.cpp
@@ -40,7 +40,7 @@ HostThreadFreeBSD::SetName(lldb::thread_t thread, llvm::StringRef name)
}
void
-HostThreadFreeBSD::GetName(lldb::thread_t thread, llvm::SmallVectorImpl<char> &name)
+HostThreadFreeBSD::GetName(lldb::tid_t tid, llvm::SmallVectorImpl<char> &name)
{
name.clear();
int pid = Host::GetCurrentProcessID();
@@ -73,9 +73,9 @@ HostThreadFreeBSD::GetName(lldb::thread_t thread, llvm::SmallVectorImpl<char> &n
for (size_t i = 0; i < len / sizeof(*kp); i++)
{
- if (kp[i].ki_tid == (int)thread)
+ if (kp[i].ki_tid == (lwpid_t)tid)
{
- name.append(kp[i].ki_tdname, strlen(kp[i].ki_tdname));
+ name.append(kp[i].ki_tdname, kp[i].ki_tdname + strlen(kp[i].ki_tdname));
break;
}
}
OpenPOWER on IntegriCloud