Fix broken tests due to new error output.

This reverses out the options validators changes.  We'll get these
back in once the changes to the output can be resolved.

Restores broken tests on FreeBSD, Linux, MacOSX.

Changes reverted: r212500, r212317, r212290.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@212543 91177308-0d34-0410-b5e6-96231b3b80d8
Remove hack from dotest.py to fix extra output on -P command, and fix MacOSX multi-threaded test run collisions on crashlog.dylib.

On MacOSX, we need to adjust the way we clean up the crashlog dylib in deleteCrashInfoDylib().
Right now it is only geared to run one test at a time.  For now I'm just skipping the delete.
I'll work with Apple on a fix that handles this.  It seems to only cause one dylib total to
hang around that might otherwise have been deleted.  Fixes MacOSX multiple tests running
at the same time.  (I didn't hit this on Yosemite, might be an issue that only shows up
on Mavericks?)


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@212548 91177308-0d34-0410-b5e6-96231b3b80d8
Simplify Host::GetOSVersion() on macosx.

It removes usage of the deprecated function CFURLCreateDataAndPropertiesFromResource().



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


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@212553 91177308-0d34-0410-b5e6-96231b3b80d8
Revert accidental change to Xcode project.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@212554 91177308-0d34-0410-b5e6-96231b3b80d8
Document the "thread.completed-expression" feature in the "expression" command help.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@212558 91177308-0d34-0410-b5e6-96231b3b80d8
Add the ability to provide a "count" option to the various "thread step-*" operations.  Only
step-inst and step-inst are currently supported, the rest just warn that they are not supported
if you try to provide a count.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@212559 91177308-0d34-0410-b5e6-96231b3b80d8
Make sure that qProcessInfo packet returns correct cpu type/subtype for processes on Haswell machines with a Haswell enabled kernel.

<rdar://problem/17332107>


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@212567 91177308-0d34-0410-b5e6-96231b3b80d8
Tweak for lldb coding style consistency.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@212575 91177308-0d34-0410-b5e6-96231b3b80d8
Correct indentation level for one line.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@212582 91177308-0d34-0410-b5e6-96231b3b80d8
__arm64__ and __aarch64__ #ifdef adjustments

Change by Paul Osmialowski

See http://reviews.llvm.org/D4379 for details.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@212583 91177308-0d34-0410-b5e6-96231b3b80d8
Revert "Fix broken tests due to new error output."

This reverts commit ec7c94f8e6860968d384b578e5564a9c55c80b4a and
re-enables OptionValidators.

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@212627 91177308-0d34-0410-b5e6-96231b3b80d8
Fix tests broken by the OptionValidator changes.

The getopt library has a structure called option (lowercase).  We
have a structure called Option (uppercase).  previously the two
structures had exactly the same definitions, and we were doing a
C-style cast of an Option* to an option*.  C-style casts don't
bother to warn you when you cast to unrelated types, but in the
original OptionValidator patch I modified the definition of Option.

This patch fixes the errors by building an array of option
structures and filling it out the correct way before passing it to
the getopt library.

This also fixes one other source of test failures: an uninitialized
read that occurs due to not initializing a field of the
OptionDefinition.

Reviewed By: Todd Fiala

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

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@212628 91177308-0d34-0410-b5e6-96231b3b80d8
Dont' use a random probe & alloc strategy for the IRMemoryMap.

The current strategy for host allocation is to choose a random
address and attempt to allocate there, eventually failing if the
allocation cannot be satisfied.

The C standard only guarantees that RAND_MAX >= 32767, so for
platforms that use a very small RAND_MAX allocations will fail
with very high probability.  On such platforms (Windows is one),
you can reproduce this trivially by running lldb, typing "expr (3)"
and then hitting enter you see a failure.  Failures generally
happen with a frequency of about 1 failure every 5 evaluations.

There is no good reason that allocations need to look like "real"
pointers, so this patch changes the allocation scheme to simply
jump straight to the end and grab a free chunk of memory.

Reviewed By: Sean Callanan

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

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@212630 91177308-0d34-0410-b5e6-96231b3b80d8
Mark failing tests in TestDataFormatterObjC on Darwin as XFAIL

See http://llvm.org/bugs/show_bug.cgi?id=20260 for more details.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@212639 91177308-0d34-0410-b5e6-96231b3b80d8
Make sure the "command regex add" has a unique name for editline history purposes.

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@212644 91177308-0d34-0410-b5e6-96231b3b80d8
Disable TestDataFormatterStdMap.test_with_dsym_and_run_command on Darwin

See http://llvm.org/bugs/show_bug.cgi?id=20263


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@212645 91177308-0d34-0410-b5e6-96231b3b80d8
TestDataFormatterStdVector.test_with_dsym_and_run_command marked XFAIL on Darwin

See http://llvm.org/bugs/show_bug.cgi?id=20264


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@212646 91177308-0d34-0410-b5e6-96231b3b80d8
Marked failing Darwin TestProcessLaunch tests as XFAIL

See http://llvm.org/bugs/show_bug.cgi?id=20265


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@212647 91177308-0d34-0410-b5e6-96231b3b80d8
Marked failing test XFAIL for TestRegisterVariables.test_with_dsym_and_run_command on Darwin

See http://llvm.org/bugs/show_bug.cgi?id=20266


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