Fixing TestAnonymous to build dwarf where it says it will.

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@193628 91177308-0d34-0410-b5e6-96231b3b80d8
Fixing an issue in yesterday's dynamic type changes where we would not craft a valid SBType given debug information
Added a test case to help us detect regression in this realm



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

Fix a crasher that would occur if one tried to read memory as characters of some size != 1, e.g.
x -f c -s 10  buffer

This commit tries to do the right thing and uses the byte-size as the number of elements, unless both are specified and the number of elements is != 1
In this latter case (e.g. x -f c -s 10 -c 3  buffer) one could multiply the two and read 30 characters, but it seems a stretch in mind reading.



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

One of the things that dynamic typing affects is the count of children a type has
Clear out the flag that makes us blindly believe the children count when a dynamic type change is detected



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

CFNumberRef is toll-free bridged to NSNumber
We can use the same summary formatter for both types



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

Fixing a problem where ValueObject::GetPointeeData() would not accept "partial" valid reads (i.e. asking for 10 items and getting only 5 back)
While suboptimal, this situation is not a flat-out failure and could well be caused by legit scenarios, such as hitting a page boundary

Among others, this allows data formatters to print char* buffers allocated under libgmalloc



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@193704 91177308-0d34-0410-b5e6-96231b3b80d8
Fixed a warning in PlatformiOSSimulator where GetSDKDirectory was hiding recently added virtual function. Renamed GetSDKDirectory to GetSDKsDirectory to fix the issue. GetSDKsDirectory is a better fit because it finds the directory that contains all SDKs, not the current one.



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

Inlined a copy of cxa_demangle.cpp from:

http://llvm.org/svn/llvm-project/libcxxabi/trunk/src/cxa_demangle.cpp

For systems that don't have demangling built into the system, and for systems that don't want to use the version that is installed. Defining LLDB_USE_BUILTIN_DEMANGLER in your build system allows you to use the built in demangler. This setting is curently automatically enabled for Windows builds.



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@193708 91177308-0d34-0410-b5e6-96231b3b80d8
Removing expected failure decorator for a test that's passing.

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

Fixed the expression parser to be able to iterate across all function name matches that it finds when it is looking for the address of a function that the IR is looking for. Also taught it to deal with reexported symbols.



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@193716 91177308-0d34-0410-b5e6-96231b3b80d8
This checkin introduces the notion of hardcoded formatters, which LLDB can bind to a ValueObject internally depending on any criteria
User-vended by-type formatters still would prevail on these hardcoded ones

For the time being, while the infrastructure is there, no such formatters exist

This can be useful for cases such as expanding vtables for C++ class pointers, when there is no clear cut notion of a typename matching, and the feature is low-level enough that it makes sense for the debugger core to be vending it

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

Fixes from code review by Jim Ingham that reinstate preferring an external vs non-external symbol when finding function addresses.



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@193761 91177308-0d34-0410-b5e6-96231b3b80d8
Tls test fails on FreeBSD due to llvm.org/pr16696

(Threaded inferior debugging not yet available on FreeBSD.)


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@193771 91177308-0d34-0410-b5e6-96231b3b80d8
Use inlined demangler on FreeBSD

FreeBSD includes the elftoolchain project's demangler in the base system.
It does not handle some unusual mangled names, so use the inlined
libcxxabi one.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@193776 91177308-0d34-0410-b5e6-96231b3b80d8
Added more details on the exact version of the cxa_demangle.cpp file for the built in demangler. This will help us track when we need to update this file.



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@193784 91177308-0d34-0410-b5e6-96231b3b80d8
SBValue::GetValueAsUnsigned()/GetValueAsSigned() should not replicate the Scalar manipulation logic found in ValueObject, but rather just call down to it


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@193786 91177308-0d34-0410-b5e6-96231b3b80d8
Remove unused DWARFDebugLine length functions



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@193792 91177308-0d34-0410-b5e6-96231b3b80d8
Fix dynamic value test to build correctly on Linux with C++11 features.

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@193793 91177308-0d34-0410-b5e6-96231b3b80d8
Migrate DWARFDebugLine to DWARFDataExtractor 64-bit DWARF support


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@193794 91177308-0d34-0410-b5e6-96231b3b80d8
Renaming the setting to enable/disable automatic one-lining of summaries as auto-one-line-summaries



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