Fix a thinko in the process list formatting.
Made Process::Attach list the matching processes if there is more than one match.

<rdar://problem/18023352>


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@215730 91177308-0d34-0410-b5e6-96231b3b80d8
Don't crash when specifying a core file that isn't readable.

Fixes include:
1 - added new FileSpec method: bool FileSpec::Readable()
2 - detect when an executable is not readable and give an appropriate error for:
    (lldb) file /tmp/unreadablefile
3 - detect when a core file is not readable and give an appropriate error
4 - detect when a specified core file doesn't exist and give an appropriate error
    
<rdar://problem/17727734>



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@215741 91177308-0d34-0410-b5e6-96231b3b80d8
Missed a few places where we need to report unreadable executables.

<rdar://problem/17727734>



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@215743 91177308-0d34-0410-b5e6-96231b3b80d8
Fix dependency ordering for the xpc file installs.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@215771 91177308-0d34-0410-b5e6-96231b3b80d8
Move FileSystem functions out of Host and into their own classes.

More specifically, this change can be summarized as follows:
1) Makes an lldbHostPosix library which contains code common to
   all posix platforms.
2) Creates Host/FileSystem.h which defines a common FileSystem
   interface.
3) Implements FileSystem.h in Host/windows and Host/posix.
4) Creates Host/FileCache.h, implemented in Host/common, which
   defines a class useful for storing handles to open files needed
   by the debugger.

Differential Revision: http://reviews.llvm.org/D4889

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@215775 91177308-0d34-0410-b5e6-96231b3b80d8
Remove another of the llvm given warnings from the list of
warnings we compile with because of SWIG generated code.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@215778 91177308-0d34-0410-b5e6-96231b3b80d8
Try to fix the Make build

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@215782 91177308-0d34-0410-b5e6-96231b3b80d8
Add functions to ClangASTContext to get integer types of a given byte size

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@215783 91177308-0d34-0410-b5e6-96231b3b80d8
Still trying to fix the Make build.  Link lldbHostPosix to liblldb

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@215788 91177308-0d34-0410-b5e6-96231b3b80d8
In the CMake build, convert lldbHost to be a single static library.

Previously lldbHost was built as multiple static libraries such as
lldbHostCommon, lldbHostLinux, etc.  With this patch, the CMake
build produces only a single static library, lldbHost, whose file
set is dynamically created based on the platform.

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@215792 91177308-0d34-0410-b5e6-96231b3b80d8
In order for the debug script filename to be valid as a module name, LLDB does some textual replacements. However, if one were unaware of this, they might name their script using the 'untampered' file name and they would get no feedback about it. Add logic to LLDB to make sure we tell people about those changes if it turns out they might need to know. Fixes rdar://14310572

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@215798 91177308-0d34-0410-b5e6-96231b3b80d8
When attempting to print function names with arguments in frame formatting, attempt to detect templated functions, and replace the argument list with values outside the template marking. Turns C::f<(this=0x00007fff5fbffb70, x=2, y=1)0>(int, int) into C::f<(C::V)0>(this=0x00007fff5fbffb70, x=2, y=1), which definitely looks more like the real thing. Fixes rdar://14882237

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@215800 91177308-0d34-0410-b5e6-96231b3b80d8
Enable the data formatter for std::vector<bool> on libc++ again. In recent clang builds, we are vended a different typename, which the formatter needs to match against.

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@215801 91177308-0d34-0410-b5e6-96231b3b80d8
Fix Linux to respect ASLR settings when launching processes to debug locally and remotely.

See the following links for details:
http://llvm.org/bugs/show_bug.cgi?id=20658
See http://reviews.llvm.org/D4941


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@215822 91177308-0d34-0410-b5e6-96231b3b80d8
Update comment for functionality not present in ObjectFile

It looks like this comment was not changed during some refactoring that
happened prior to the initial LLDB public release.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@215835 91177308-0d34-0410-b5e6-96231b3b80d8
Fix the missleading indentation. Fix CID 1096300

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@215892 91177308-0d34-0410-b5e6-96231b3b80d8
Fix the missleading indentation. Fix CID 1096332

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@215893 91177308-0d34-0410-b5e6-96231b3b80d8
add missing break. Fix CID 1229446 & 1203680

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@215894 91177308-0d34-0410-b5e6-96231b3b80d8
Fix an issue with source file groupings in the CMake build.

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@215901 91177308-0d34-0410-b5e6-96231b3b80d8
Added newline at end of file to avoid compiler warning.

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