Don't use "lldb." global variables in LLDB commands.



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@212852 91177308-0d34-0410-b5e6-96231b3b80d8
Don't crash when a SBType is handed out through the API and later used after the module that owns the type is deleted.

The fix adds a std::weak_ptr<Module> into the TypeImpl and fills in the weak pointer when possible. It also checks to make sure the module is still alive prior to using it which should make our API safer to use.

<rdar://problem/15455145> 



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@212853 91177308-0d34-0410-b5e6-96231b3b80d8
Added llgs --named-pipe support and program_name-version_number printout support.

Added a unit test to test debugserver and llgs compliance on --named-pipe support.

Modified llgs to implement --named-pipe support.  (Note: need to revisit with
new generic pipe support).


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@212854 91177308-0d34-0410-b5e6-96231b3b80d8
Remove assert now that we have a 'i' character that might come through as well as the 'q' character on the interrupt pipe.

<rdar://problem/15840749>



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@212856 91177308-0d34-0410-b5e6-96231b3b80d8
Allow generic ARM cores to match any more specific ARM architecture.

<rdar://problem/15932248>



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@212863 91177308-0d34-0410-b5e6-96231b3b80d8
lldb needs to support DW_op_piece masks for values in subregister and also to be able to piece together a value that is spread across multiple registers.

Patch from Adrian Prantl.

<rdar://problem/16040521> 



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

The --setsid (-S) option changes the session id for the lldb-gdbserver process.
This is used by tools such as lldb-platform and allows the user to prevent
llgs from being in the same session as a calling terminal session.
This will prevents terminal group control signals from affecting
lldb-gdbserver.

See also:
https://github.com/tfiala/lldb/issues/38


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@212873 91177308-0d34-0410-b5e6-96231b3b80d8
Merge remote-tracking branch 'upstream/master' into gsoc