Update comment after Linux->POSIX rename



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@184850 91177308-0d34-0410-b5e6-96231b3b80d8
Match printf format specifiers and arguments



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@184854 91177308-0d34-0410-b5e6-96231b3b80d8
Correct use of __FreeBSD_kernel__

It is defined on recent FreeBSD versions, so must not be mutually
exclusive with an #elif FreeBSD block.

Patch submitted by Robert Millan.

Fixes PR#16447.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@184867 91177308-0d34-0410-b5e6-96231b3b80d8
Skip tests that hang on FreeBSD

There's still significant work to do in the FreeBSD port, so no point
in a pr for these yet.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@184871 91177308-0d34-0410-b5e6-96231b3b80d8
Skip dsym tests also on FreeBSD



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@184874 91177308-0d34-0410-b5e6-96231b3b80d8
Update version sscanf to match FreeBSD release info

Release strings are of the form 9.1-RELEASE-p3 or 10.0-CURRENT.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@184876 91177308-0d34-0410-b5e6-96231b3b80d8
Fix undefined behaviour in data formatter test -- ensure char* null-terminated
so LLDB does not read off the end of the array.



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@184877 91177308-0d34-0410-b5e6-96231b3b80d8
Fixed a bug in ClangASTSource where we would return
the target of a typedef when asked for a typedef.


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

The semi-unofficial way of returning a status from a Python command was to return a string (e.g. return "no such variable was found") that LLDB would pick as a clue of an error having happened

This checkin changes that:
- SBCommandReturnObject now exports a SetError() call, which can take an SBError or a plain C-string
- script commands now drop any return value and expect the SBCommandReturnObject ("return object") to be filled in appropriately - if you do nothing, a success will be assumed

If your commands were relying on returning a value and having LLDB pick that up as an error, please change your commands to SetError() through the return object or expect changes in behavior



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

The argument to -w (--category) in type * list is a regular expression
This caused unhappiness with the gnu-libstdc++ category because of the double ++

Now we check for exact textual match as-well-as regexp matching



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

"command source" was not properly setting the stop-on-error option



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@184899 91177308-0d34-0410-b5e6-96231b3b80d8
Remove the #define USE_CACHE since the formatters cache has been operational for a while now and has not caused issues that warrant disabling it
Also, print the cache hits statistics if the log is in debugging mode vs. LLDB being a debug build - this should make it easier to gather useful metrics on cache success rate for real users

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@184900 91177308-0d34-0410-b5e6-96231b3b80d8
Remove ifdef LLDB_CONFIGURATION_DEBUG directives around the formatter
cache ivars/methods.


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

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@184948 91177308-0d34-0410-b5e6-96231b3b80d8
Don't explicitly set update version

Host::GetOSVersion's caller already sets it to UINT32_MAX to determine
which version number components are set.


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

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@184954 91177308-0d34-0410-b5e6-96231b3b80d8
Remove unneeded limbo state flag.


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

Match up with top’s implementation on recent Cab as API has changed a bit.
Tested the same binary running on Zin as well. Tested ARM binary on iOS as well.

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@185017 91177308-0d34-0410-b5e6-96231b3b80d8
Fixed the process_events.py example to be able to specify the platform and also use the debugger's listener.



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@185027 91177308-0d34-0410-b5e6-96231b3b80d8
Update the platform options help strings.



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