This patch adds support for kernel threads on FreeBSD 6.1. There are obviously some rough edges still, and I'd appreciate feedback from people with FreeBSD experience and also experience with thread support in gdb. One thing that currently is broken according to the gdb testsuite thread tests is thread local storage. -Fred