[Bug 19209] New: size of std::list truncated to 255 in debugger

Bug ID 19209
Summary size of std::list truncated to 255 in debugger
Product lldb
Version unspecified
Hardware Macintosh
OS MacOS X
Status NEW
Severity normal
Priority P
Component All Bugs
Assignee lldb-dev@cs.uiuc.edu
Reporter guiqing0402@gmail.com
Classification Unclassified

Created attachment 12260 [details]
screenshot_on_breakpoint

I'm using xcode for the C++ part of some iOS app.

When I use std::list, I see its size never go beyond 255 in the lldb. But when
I call the size(), it seems correct inside the container.

Case1:
std::list<int> var1;
var1.resize(300);
// XCode shows 255, see the attachment
// (lldb) frame variable var1 --show-all-children 
// the lldb only unfold the elements to [254]

Case2:
std::vector var1;
var1.resize(300);
// XCode shows 300, see the attachment
// (lldb) frame variable var1 --show-all-children 
// the lldb only unfold the elements to [299]

This can be reproduced on Xcode 4.6 (OS X10.8.4) and Xcode 5.0 (OS X 10.9)

Enrico Granata changed bug 19209

What | Removed | Added |

Comment # 1 on bug 19209 from Enrico Granata

This bug should be assigned to me since I maintain those formatters

I believe there are some improvements in ToT LLDB compared to what you're
seeing with released Xcode builds, so that is going to be my first course of
action

Thanks for filing!