A simple implementation of a summary and synthetic children providers for LLDB-specific shared pointers - This could be generalized to work with C++11 shared pointers with relative ease

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

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@156412 91177308-0d34-0410-b5e6-96231b3b80d8
<rdar://problem/11239650> Fixing a bug where the SetValueFromCString() method failed to operate on dynamic values. The fix consists in making the set operation fall through to the parent. We only actually allow this if the dynamic value is at a 0-offset from the parent, or the new value is 0. Other scenarios would need agreement on the actual meaning of the set operation (do we keep offsetting? do we just assume the user knows what they are doing?) so we prevent them, and let the expression parser deal with the complexity

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@156422 91177308-0d34-0410-b5e6-96231b3b80d8
<rdar://problem/11408853>

We make sure that if the user cancels out of the authentication dialog to add 'com.apple.lldb.LaunchUsingXPC' rights to /etc/authorization, we don't try to do AuthorizationCopyRights.

As well, refactored a bit so that control flow is easier to read for other folks. Added more comments.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@156423 91177308-0d34-0410-b5e6-96231b3b80d8
<rdar://problem/11400476>

On Lion, because the rights initially doesn't exist in /etc/authorization, if an admin user logs in and uses lldb within the first 5 minutes, it is possible to do AuthorizationCopyRights on LaunchUsingXPCRightName and get the rights back. As another security measure, we make sure that the LaunchUsingXPCRightName rights actually exists.

Removed Xcode as the user of the XPC service to shrink the security surface area.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@156424 91177308-0d34-0410-b5e6-96231b3b80d8
<rdar://problem/11338654> Fixing a bug where having a summary for a bitfield without a format specified would in certain cases crash LLDB - This has also led to refactoring the by-type accessors for the data formatter subsystem. These now belong in our internal layer, and are just invoked by the public API stratum

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@156429 91177308-0d34-0410-b5e6-96231b3b80d8
Print out a notification when the process of a target other than the currently selected target stops.

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@156433 91177308-0d34-0410-b5e6-96231b3b80d8
Remove the string pool from the global destructor chain so it doesn't get yanked out from under us prematurely on exit.

rdar://problem/11358062

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@156496 91177308-0d34-0410-b5e6-96231b3b80d8
Make redo.py more error-proof

Deal with being passed no parameters
Remove the infinite loop when it's passed something like --help


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@156504 91177308-0d34-0410-b5e6-96231b3b80d8
Option processing fix: should match '-F' exactly, instead.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@156509 91177308-0d34-0410-b5e6-96231b3b80d8
Make ctrl-c terminate the current input line and start an empty line, instead of the previous content.

rdar://problem/11412821


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@156510 91177308-0d34-0410-b5e6-96231b3b80d8
Added a #define of NULL to 0 to make NULL usable
in expressions.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@156514 91177308-0d34-0410-b5e6-96231b3b80d8
If the ObjC Step Through Trampoline plan causes a target crash, properly propagate the error back to
the controlling plans so that they don't lose control.

Also change "ThreadPlanStepThrough" to take the return StackID for its backstop breakpoint as an argument
to the constructor rather than having it try to figure it out itself, since it might get it wrong whereas
the caller always knows where it is coming from.

rdar://problem/11402287


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@156529 91177308-0d34-0410-b5e6-96231b3b80d8
<rdar://problem/11330621>

Fixed the DisassemblerLLVMC disassembler to parse more efficiently instead of parsing opcodes over and over. The InstructionLLVMC class now only reads the opcode in the InstructionLLVMC::Decode function. This can be done very efficiently for ARM and architectures that have fixed opcode sizes. For x64 it still calls the disassembler to get the byte size.

Moved the lldb_private::Instruction::Dump(...) function up into the lldb_private::Instruction class and it now uses the function that gets the mnemonic, operandes and comments so that all disassembly is using the same code.

Added StreamString::FillLastLineToColumn() to allow filling a line up to a column with a character (which is used by the lldb_private::Instruction::Dump(...) function).

Modified the Opcode::GetData() fucntion to "do the right thing" for thumb instructions.



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@156532 91177308-0d34-0410-b5e6-96231b3b80d8
Remove stuff from the xcscheme file that need not be checked in.



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@156533 91177308-0d34-0410-b5e6-96231b3b80d8
<rdar://problem/11388521>

Fixed a case where the install header phase in the Xcode project would not set the LLDB_VERSION #define correctly. It has now been fixed to key off of the CURRENT_PROJECT_VERSION which will get auto updated with "agvtool bump -all". This was done by adding a build setting to the install-headers makefile based target.



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@156535 91177308-0d34-0410-b5e6-96231b3b80d8
Sanity check the return value from SBSCopyApplicationDisplayIdentifiers() before calling CFArrayGetCount() on it.

rdar://problem/11331867


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@156562 91177308-0d34-0410-b5e6-96231b3b80d8
Updated LLVM/Clang to force the record layout engine
to complete C++ classes before traversing their base
classes.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@156570 91177308-0d34-0410-b5e6-96231b3b80d8
Make crashlog.py more robust when dealing with the "Version: ..." header from the crash log file.

rdar://problem/11428134


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@156581 91177308-0d34-0410-b5e6-96231b3b80d8
Added the ability to get the stack history for a malloc block. This is a work in progress. Checking this in so I can work on it some more.



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