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
Don't search for module resources at all if the setting is set to "false". 

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@215936 91177308-0d34-0410-b5e6-96231b3b80d8
Cleanup how we listen for process events by using the broadcaster class name instead of having to catch each process instance as it comes alive.

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@215937 91177308-0d34-0410-b5e6-96231b3b80d8
Update for llvm api change.

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@215969 91177308-0d34-0410-b5e6-96231b3b80d8
Buffer not null terminated CID 1094354


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@215976 91177308-0d34-0410-b5e6-96231b3b80d8
Move some Host logic into HostInfo class.

This patch creates a HostInfo class, a static class used to answer
basic queries about the host platform.  As part of this change,
some functionality is moved from Host to HostInfo, and relevant
fixups are performed in the rest of the codebase.

This is part of a larger effort to isolate more code in the Host
layer into platform-specific groups, to make it easier to make
platform specific changes for a particular Host without breaking
other hosts.

Reviewed by: Greg Clayton

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

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@215992 91177308-0d34-0410-b5e6-96231b3b80d8
Fix .clang-format file to adhere to LLDB 140 column limit.

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@215993 91177308-0d34-0410-b5e6-96231b3b80d8
Adjust process launch --disable-aslr to take true/false value.

This change modifies the 'process launch' --disable-aslr option to take a boolean argument.  If the user directly specifies --disable-aslr {true,false}, that setting will control whether the process is launched with ASLR disabled accordingly.  In the event that the setting is not explicitly made on the process launch command line, then the value is retrieved from the target.disable-aslr setting (i.e. settings show target.disable-aslr).


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@215996 91177308-0d34-0410-b5e6-96231b3b80d8
Add includes needed for FreeBSD.

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@216000 91177308-0d34-0410-b5e6-96231b3b80d8
Refactor the hardcoded formatters facility to use sequences of lambdas - still no feature change as none are present now, but this feels cleaner. Also, hardcoded formatters do not need to be per-type, so disable caching thereof

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@216004 91177308-0d34-0410-b5e6-96231b3b80d8
Fix FreeBSD build after r215992


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@216021 91177308-0d34-0410-b5e6-96231b3b80d8
This is a fairly bulky patch, but a lot of it involves rearranging existing code
What it does:

- it introduces a concept of EncodingToType to the ObjCLanguageRuntime
  The ObjC runtime has a "type encoding" feature that describes types as strings
  The EncodingToType is a decoder for that format, making types out of type encoding strings
This feature already existed in some shape as we were using it to create method signatures out of the runtime, but this checkin extends the parser to support the full syntax, and moves things so that more parts of LLDB have access to this decoder

- it splits the ClassDescriptorV2 object to its own file, it was starting to grow too large

- it adds to the ClassDescriptor mechanism a notion of ivar storage; the ObjC runtime vends ivar information as well as method information
While ivar information is not ready for prime type (i.e. we don't want to add it to the runtime generated types for expression evaluator usage), there are potentially useful scenarios in which realizing ivar types could be useful. For now, the ClassDescriptor is going to hold ivar information directly. Existing code already allows describing ivars, this patch hooks those moving parts up so that one can actually ask a ClassDescriptor about ivars for the class it represents

and as a couple minor niceties:
- it makes it possible to retrieve the LLDB ClangASTContext that is associated to a clang::ASTContext
- it extends the ValueObject-to-ClassDescriptor API in the language runtime to deal correctly with base-class hierarchies



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@216026 91177308-0d34-0410-b5e6-96231b3b80d8
Attempt to keep the Linux build happy in face of my changes. Non-Apple folks, can you confirm that this is good enough to keep things building for you?

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@216028 91177308-0d34-0410-b5e6-96231b3b80d8
Add an accessor to ValueObject that determines if the object represents a base class, and also returns the depth of base-class-ness. For instance if one has class C : public B {} class B : public A {}, the value for A nested in B nested in C would be a base class of depth 2

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@216032 91177308-0d34-0410-b5e6-96231b3b80d8
Changes uint to uint32_t.

This fixes the build broken as a result of r216026.

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@216034 91177308-0d34-0410-b5e6-96231b3b80d8
Move Host::GetArchitecture to HostInfo::GetArchitecture.

As a side effect, this patch also eliminates all of the
preprocessor conditionals previously used to implement
GetArchitecture().

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