Commit 8312ce27 authored by hjk's avatar hjk
Browse files

Debugger: LLDB dumper for std::__1::vector



Change-Id: I11f5eb1e9b9047b86aeeb79bfd104079897a021c
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent 2651b1aa
......@@ -2513,6 +2513,24 @@ def qdump__std__vector(d, value):
else:
d.putArrayData(type, start, size)
def qdump__std____1__vector(d, value):
innerType = d.templateArgument(value.type, 0)
if lldbLoaded and childAt(value, 0).type == innerType:
# That's old lldb automatically formatting
begin = d.dereferenceValue(value)
size = value.GetNumChildren()
else:
# Normal case
begin = pointerValue(value['__begin_'])
end = pointerValue(value['__end_'])
size = (end - begin) / innerType.sizeof
d.putItemCount(size)
d.putNumChild(size)
if d.isExpanded():
d.putArrayData(innerType, begin, size)
def qdump__std____debug__vector(d, value):
qdump__std__vector(d, value)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment