Refactor NativeProcessLinux::AttachToProcess in order to avoid reinterpret_cast from NativeProcessProtocol* to NativeProcessLinux*.

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@221906 91177308-0d34-0410-b5e6-96231b3b80d8
Remove extra "/" character from paths resolved in iOS SDKs and also be sure to update the SDK directory infos if needed before we start using m_sdk_directory_infos.



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@221907 91177308-0d34-0410-b5e6-96231b3b80d8
Fixed "SBTarget SBDebugger::CreateTarget (const char *filename)" to use the same semantics as other SBDebugger::CreateTarget() functions.

The issues were:
- If you called this function with any arch other than the default target architecture, creating the target would fail because the Target::GetDefaultArchitecture() would not match the single architecture in the file specified. This caused running the test suite remotely with lldb-platform to fail many many tests due to the bad target.
- It would specify the currently selected platform which might not work for the specified platform

All other SBDebugger::CreateTarget calls do not assume an architecture or platform and if they aren't specified, they don't auto select the wrong one for you.

With this fix, SBTarget SBDebugger::CreateTarget (const char *filename) now behaves like the other SBDebugger::CreateTarget() variants.



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