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
Merge llvm.org 209318 into dev-tfiala-native-protocol-linux-x86_64

Conflicts:
	test/tools/lldb-gdbserver/TestLldbGdbServer.py
Implemented $q{f,s}ThreadInfo for llgs.

Also fixed up incorrect impl of $qC - that was still responding with
the process id.  Added comments around it being the wrong response for
lldb-platform, but kept it as process id for that case.  I believe we
should change it to return $#00 for lldb-platform while llgs responses
with the current inferior thread id.