Add errno import missed in r205246



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@205306 91177308-0d34-0410-b5e6-96231b3b80d8
Implement ProcessMonitor::Kill for FreeBSD

On FreeBSD ptrace(PT_KILL) is used to terminate the traced process
(as if PT_CONTINUE had been used with SIGKILL as the signal to be
delivered), and is the desired behaviour for ProcessPOSIX::DoDestroy.

On Linux, after ptrace(PTRACE_KILL) the traced process still exists
and can be interrogated.  It is only upon resume that it exits as though
it received SIGKILL.

For now I'm committing only the FreeBSD change, until the Linux change
(review D3159) is successfully tested.

http://llvm.org/pr18894


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@205315 91177308-0d34-0410-b5e6-96231b3b80d8
mips64: clean up register context storage

Store the gpr data in a DataBufferHeap and use a DataExtractor to
extract register values with appropriate endianness.  This avoids hard-
coding the register count, and with some further work would allow this
class to provide generic register context storage for any CPU.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@205329 91177308-0d34-0410-b5e6-96231b3b80d8
Add mips64 to the list of 64-bit Host architectures



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@205333 91177308-0d34-0410-b5e6-96231b3b80d8
Implement ProcessMonitor::Kill for Linux

On FreeBSD ptrace(PT_KILL) is used to terminate the traced process
(as if PT_CONTINUE had been used with SIGKILL as the signal to be
delivered), and is the desired behaviour for ProcessPOSIX::DoDestroy.

On Linux, after ptrace(PTRACE_KILL) the traced process still exists
and can be interrogated.  It is only upon resume that it exits as though
it received SIGKILL.

As the Linux PTRACE_KILL behaviour is not used by LLDB, rename
BringProcessIntoLimbo to Kill, and change the implementation to simply
call kill() instead of using ptrace.

Thanks to Todd F for testing (Ubuntu 12.04, gcc 4.8.2).

Sponsored by: DARPA, AFRL
Differential Revision: http://llvm-reviews.chandlerc.com/D3159


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@205337 91177308-0d34-0410-b5e6-96231b3b80d8
Use libc++ on FreeBSD as on Darwin



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@205345 91177308-0d34-0410-b5e6-96231b3b80d8
Use continue instead of next

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@205354 91177308-0d34-0410-b5e6-96231b3b80d8
Add the ability to set python breakpoint commands from the SBBreakpoint & SBBreakpointLocation API's.  
You can either provide the function name, or function body text.
Also propagate the compilation error up from where it is checked so we can report compilation errors.

<rdar://problem/9898371>


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@205380 91177308-0d34-0410-b5e6-96231b3b80d8
Test case for the previous commit.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@205381 91177308-0d34-0410-b5e6-96231b3b80d8
build: ignore pragma warnings with GCC

GCC does not support '#pragma mark'.  Add -Wno-unknown-pragmas if the compiler
supports it.

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

This is a mechanical change addressing the various sign comparison warnings that
are identified by both clang and gcc.  This helps cleanup some of the warning
spew that occurs during builds.

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@205390 91177308-0d34-0410-b5e6-96231b3b80d8
Use getpgid() with waitpid() in case the process pgid is not equal to its pid, as is the case with a forked subprocess. Also a couple of fixes for unit test failures from Todd Fiala.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@205405 91177308-0d34-0410-b5e6-96231b3b80d8
Add annotation for failure from new Attach/Resume test case on FreeBSD



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

Clean up the DynamicValueTestCase

Namely, I split off the part of the test that validates child counts to a separate test



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@205450 91177308-0d34-0410-b5e6-96231b3b80d8
Don’t #include “llvm/Support/MachO.h” in a header file if we can avoid it. 

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@205460 91177308-0d34-0410-b5e6-96231b3b80d8
Don’t include “llvm/Support/MachO.h” as it isn’t needed here.

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@205461 91177308-0d34-0410-b5e6-96231b3b80d8
Don’t #include "llvm/Support/MachO.h” as it isn’t needed here.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@205462 91177308-0d34-0410-b5e6-96231b3b80d8
Workaround for collision between enum members in LLVM's MachO.h and system headers
on Mac OS X (in particular mach/machine.h).

<rdar://problem/16494607>


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@205480 91177308-0d34-0410-b5e6-96231b3b80d8
Add decorator for pr19311 on FreeBSD

A breakpoint at the resume address for "continue" is skipped.  This is
presumably the root cause for the Linux failure as well.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@205482 91177308-0d34-0410-b5e6-96231b3b80d8
Add a missing arm64 idef.


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