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

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Mar 20 07:30:29 PDT 2014


http://llvm.org/bugs/show_bug.cgi?id=19209

            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 at cs.uiuc.edu
          Reporter: guiqing0402 at gmail.com
    Classification: Unclassified

Created attachment 12260
  --> http://llvm.org/bugs/attachment.cgi?id=12260&action=edit
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)

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20140320/b8748dbe/attachment.html>


More information about the lldb-dev mailing list