Extend the member function discovery APIs to also support Objective-C as well as C++

For the Objective-C case, we do not have a "function type" notion, so we actually end up wrapping the clang ObjCMethodDecl in the Impl object, and ask function-y questions of it
In general, you can always ask for return type, number of arguments, and type of each argument using the TypeMemberFunction layer - but in the C++ case, you can also acquire a Type object for the function itself, which instead you can't do in the Objective-C case



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@218132 91177308-0d34-0410-b5e6-96231b3b80d8
Fix typo in Linux ASLR logging.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@218133 91177308-0d34-0410-b5e6-96231b3b80d8
Adds two new functions to SBTarget FindGlobalVariables and FindGlobalFunctions that lets you search by name, by regular expression and by starts with. 

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@218140 91177308-0d34-0410-b5e6-96231b3b80d8
Test suite runs better again after recent fixes that would select a platform if a "file a.out" auto selected a different platform than the selected one.

Changes include:
- fix it so you can select the "host" platform using "platform select host"
- change all callbacks that create platforms to returns shared pointers
- fix TestImageListMultiArchitecture.py to restore the "host" platform by running "platform select host"
- Add a new "PlatformSP Platform::Find(const ConstString &name)" method to get a cached platform
- cache platforms that are created and re-use them instead of always creating a new one



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@218145 91177308-0d34-0410-b5e6-96231b3b80d8
Fix for 218140 for SBTarget.i, the added functions were in the wrong class definition

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@218147 91177308-0d34-0410-b5e6-96231b3b80d8
Make sure to #include <atomic> when using std::atomic.

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@218148 91177308-0d34-0410-b5e6-96231b3b80d8
We had to squirrel away the dyld module before doing ResolveExecutableModule, since
that would clear the module list, and then put it back by hand.  But we forgot to 
also put its sections back in the target SectionList, so we would jettison it as
unloaded when we finished handling the first real load event.  Add its sections.

<rdar://problem/18385947>


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@218156 91177308-0d34-0410-b5e6-96231b3b80d8
Fix a thinko in how the RemoteiOS Platform looked up files in the SDK & other
platform locations.  We didn't always do an exhaustive search through all the 
platform locations, so we would have to read some files out of memory even though
they existed in the exploded shared cache or SDK.

<rdar://problem/18385947>


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@218157 91177308-0d34-0410-b5e6-96231b3b80d8
Have CommandObject::CheckRequirements() report the largest missing
requirement for a command instead of the smallest.  e.g. if a command
requires a Target, Process, Thread, and Frame, and none of those
are available, report the largest -- Target -- as being missing
instead of the smallest -- Frame.

Patch by Paul Osmialowski.


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

Build break change by Paul Osmialowski.

Minor changes to argument passing (converted unintentional pass-by-value to pass-by-ref) by Todd.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@218186 91177308-0d34-0410-b5e6-96231b3b80d8
Merge upstream llvm.org r218186 into dev-llgs-local-launch
llgs-local: added a process event hijacker to wait for first stop before continuing.

Candidate fix for https://github.com/tfiala/lldb/issues/71.