Fixed a potential crash if layout for a structure
went wrong and we tried to get layout information
that wasn't there.

<rdar://problem/13490170>


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

Making value objects properly iterable in constructs of the form
[ x for x in value_with_children ]

This would previously cause an endless loop because lacking a proper iterator object, Python will keep calling __getitem__() with increasing values of the index until it gets an IndexError
since SBValue::GetValueForExpressionPath() supports synthetic array members, no array index will ever really cause an IndexError to be raised, hence the endless iteration

class value_iter is an implementation of __iter__() that provides a terminating iterator over a value

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