Skip to content

Commit

Permalink
Speculative build fix for FreeBSD
Browse files Browse the repository at this point in the history
broken by r298058.

llvm-svn: 298061
  • Loading branch information
labath committed Mar 17, 2017
1 parent 70c8d29 commit 872305e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lldb/source/Plugins/Process/FreeBSD/FreeBSDThread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@

// C Includes
#include <errno.h>
#include <sys/sysctl.h>
#include <sys/types.h>

// C++ Includes
// Other libraries and framework includes
Expand Down Expand Up @@ -141,7 +143,7 @@ const char *FreeBSDThread::GetName() {
}

for (size_t i = 0; i < len / sizeof(*kp); i++) {
if (kp[i].ki_tid == (lwpid_t)tid) {
if (kp[i].ki_tid == (lwpid_t)GetID()) {
m_thread_name.append(kp[i].ki_tdname,
kp[i].ki_tdname + strlen(kp[i].ki_tdname));
break;
Expand Down

0 comments on commit 872305e

Please sign in to comment.