[lldb-dev] lldb patches for FreeBSD

Pieter de Goeje pieter at degoeje.nl
Thu May 12 17:15:02 PDT 2011

On Friday 13 May 2011 00:00:28 Amit Kulkarni wrote:
> It seems FreeBSD is also affected like OpenBSD about the thread id
> issue discussed a month before in this thread. I am cc'ing matthew@
> just to keep him in the loop.
> http://lists.cs.uiuc.edu/pipermail/lldb-dev/2011-April/000444.html

Check out this code from FreeBSD's OpenJDK6 port:

#if __FreeBSD_version > 900030
  return pthread_getthreadid_np();
  long tid;
  return (pid_t)tid;

The underlying type of a tid (lwpid_t in kernel) is an int.

Pieter de Goeje

More information about the lldb-dev mailing list