Fix the behavior of ${current-pc-arrow} in the default disassembly
format for the not-current-stack-frame.  This was causing
test/functionalities/inferior-assert to fail.

Also document the new additions to the format specifications used
in the disassembly-format changes to formats.html.

<rdar://problem/19102757> 


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@223096 91177308-0d34-0410-b5e6-96231b3b80d8
Fix broken test suite on Windows after r223091.

Differential Revision: http://reviews.llvm.org/D6484
Reviewed by: Oleksiy Vyalov

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@223155 91177308-0d34-0410-b5e6-96231b3b80d8
Mark the armv7 q0-q3 and q8-q15 registers as volatile (not callee
preserved) in the ABI.

Realistically lldb isn't able to track register saves of any of
the neon regs right now so we should probably mark all of the 
regs as unavailable when you're not on stack frame 0...

<rdar://problem/19115127> 


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@223174 91177308-0d34-0410-b5e6-96231b3b80d8
Update setMCJITMemoryManager call to keep in line with llvm r223183.
Patch from Ryan Goodfellow.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@223196 91177308-0d34-0410-b5e6-96231b3b80d8
Fix a hang on OSX while executing -exec-run.
Now we wait for input to become available before blocking in fgets.
More details on problem can be found in 
http://lists.cs.uiuc.edu/pipermail/lldb-commits/Week-of-Mon-20141201/014290.html

Patch from dawn@burble.org.



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@223222 91177308-0d34-0410-b5e6-96231b3b80d8
Remove unnecessary changes committed in r223222.
There were 2 different patches in discussion. One using ioctl
and other using select. We decided to use the ioctl but committed
code also have some changes which were only needed for 'select'.
This patch removes them.



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@223227 91177308-0d34-0410-b5e6-96231b3b80d8
Use timeout when reading debugserver's port from a named pipe.

http://reviews.llvm.org/D6490



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@223251 91177308-0d34-0410-b5e6-96231b3b80d8
Correctly shutdown when DoDestroy is called with an active exception.

Previously if we got a DoDestroy while stopped at a breakpoint, we
would detach and then say the process had exited.  This is completely
wrong, as it resulted in the python script incorrectly assuming that
the process had actually exited and trying to delete the image, when
in fact it had done no such thing.

The fix employed here is that when we get a DoDestroy, we do 3 steps:

1) initiate a termination sequence on the process
2) If we were stopped handling an exception of any kind, mask it and
   let the program resume, causing the program to see the termination
   request and exit on its own.
3) Let the program exit normally, and close all of our handles before
   returning control back to DoDestroy.

This fixes Bug 21722 and Bug 21723.

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@223272 91177308-0d34-0410-b5e6-96231b3b80d8
Manually call ModulesDidLoad when the executable is loaded.

This is a temporary workaround to get deferred breakpoint
resolution working until Bug 21720 is addressed.  Even with this
workaround, it will only resolve deferred breakpoints in the
executable module, and not in a shared library.

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@223273 91177308-0d34-0410-b5e6-96231b3b80d8
Improve the comments on PutSTDIN, GetSTDOUT, and GetSTDERR.

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

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@223308 91177308-0d34-0410-b5e6-96231b3b80d8
Cleanup of the fix done recently for a lldb-mi hang on OSX.
It was observed that we dont need to set stdin to unbuffered and setting console
to non-canonical mode.

Patch originally came from "Ilia K <ki.stfu@gmail.com>"



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@223353 91177308-0d34-0410-b5e6-96231b3b80d8
Fix a build breakage. Looks like the LLVM side of this change has been reverted

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@223375 91177308-0d34-0410-b5e6-96231b3b80d8
Remove dead code from SymbolFileDWARF:

lldb::TypeSP 
SymbolFileDWARF::FindDefinitionTypeForDIE (
    DWARFCompileUnit* dwarf_cu, 
    const DWARFDebugInfoEntry *die, 
    const lldb_private::ConstString &type_name);

This function isn't used as it has been replaced by:

lldb::TypeSP
SymbolFileDWARF::FindDefinitionTypeForDWARFDeclContext (
    const DWARFDeclContext &die_decl_ctx);

I am about to change the way we resolve C/C++ class/struct/union types and want to clean up SymbolFileDWARF before I start.



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@223376 91177308-0d34-0410-b5e6-96231b3b80d8
We should not pretend that an int is a valid ObjC pointer. If your number truly is a pointer, po (id)myNumber is a better alternative. Fixes rdar://16585032

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@223379 91177308-0d34-0410-b5e6-96231b3b80d8
Revert "Fix a build breakage. Looks like the LLVM side of this change has been reverted"

This reverts commit r223375.  We need to use unique_ptr to build with
LLVM r223183.

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@223388 91177308-0d34-0410-b5e6-96231b3b80d8
Revert "Use timeout when reading debugserver's port from a named pipe."

This reverts commit 4a5ad2c077166cc3d6e7ab4cc6e3dcbbe922af86.

Windows doesn't support select() for pipe objects, and this also fails
to compile on Windows.  Reverting this until we can get it sorted out
to keep the windows build working.

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@223392 91177308-0d34-0410-b5e6-96231b3b80d8
Fix a minor error where I forgot to declare a variable.

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@223393 91177308-0d34-0410-b5e6-96231b3b80d8
Kill any python test script that takes more than 5 minutes

There is at least one test that hangs on the Linux debian buildbot.

When that test hangs, the buildbot kills dosep which loses all test
results.  This change kills just the hung test and should let us see
which test is hanging.  This is useful for that test and any others
in the future which start hanging.



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@223423 91177308-0d34-0410-b5e6-96231b3b80d8
Add support for embedding Clang compiler headers
like tgmath.h and stdarg.h into the LLDB installation,
and then finding them through the Host infrastructure.

Also add a script to actually do this on Mac OS X.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@223430 91177308-0d34-0410-b5e6-96231b3b80d8
Added support to Platform to indicate (1) whether the
current platform supports Clang modules, and (2) what
options to pass to Clang so it can load those Clang
modules.


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