aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectExpression.cpp
diff options
context:
space:
mode:
authorEnrico Granata <egranata@apple.com>2013-03-25 18:53:07 +0000
committerEnrico Granata <egranata@apple.com>2013-03-25 18:53:07 +0000
commitac9df2d1a6ed91d49adc3d84a1b84774632604e3 (patch)
tree52d854f2343ce1821cb7b742c509bcd6ea19be1d /lldb/source/Commands/CommandObjectExpression.cpp
parent1ad494d35bc24af977085026e97243f70bd2839c (diff)
downloadllvm-ac9df2d1a6ed91d49adc3d84a1b84774632604e3.zip
llvm-ac9df2d1a6ed91d49adc3d84a1b84774632604e3.tar.gz
llvm-ac9df2d1a6ed91d49adc3d84a1b84774632604e3.tar.bz2
<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 llvm-svn: 177885
Diffstat (limited to 'lldb/source/Commands/CommandObjectExpression.cpp')
0 files changed, 0 insertions, 0 deletions