Implement Host::GetThreadName for FreeBSD



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@209312 91177308-0d34-0410-b5e6-96231b3b80d8
Added gdb-remote tests for q{f,s}ThreadInfo.

The First test verifies that qThreadInfo queries work for stub-launched processes.

The second test verifies that $qC after stub-launched inferior returns the same
thread as the qThreadInfo queries.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@209314 91177308-0d34-0410-b5e6-96231b3b80d8
Added tests for q{f,s}ThreadInfo for attached processes.

Added helper methods:
prep_debug_monitor_and_inferior(): properly handles
the two cases of running the stub against an inferior process
launched by the stub, and one attached to by the stub.  See
docs for function: simplifies test creation for tests that want
to test the same operations against a launched and attached inferior.

Added the q{f,s}ThreadInfo and $qC response comparison test (verifies
they both return the same thing) when the process is attached rather
than launched by the stub.

Modified the previous two tests added to make use of the new
prep_debug_monitor_and_inferior() facility.



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@209318 91177308-0d34-0410-b5e6-96231b3b80d8