[lldb-dev] [Bug 13568] New: can't evaluate basic_string element via operator[]

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Aug 9 20:28:39 PDT 2012


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

             Bug #: 13568
           Summary: can't evaluate basic_string element via operator[]
           Product: lldb
           Version: unspecified
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
        AssignedTo: lldb-dev at cs.uiuc.edu
        ReportedBy: dmarkman at mac.com
    Classification: Unclassified


In the bug 12621 Greg Clayton said if I use operator [] in the program then
I'll be able to evaluate 
the following code


    std::u16string ustr = u"Привет!";
    char16_t uchar = ustr[0];
    std::cout << (size_t)uchar << std::endl;

if I put breakpoint at the last line
I'll get

error: call to a function 'std::__1::basic_string<char16_t,
std::__1::char_traits<char16_t>, std::__1::allocator<char16_t>
>::operator[](unsigned long)' that is not present in the target
error: Couldn't materialize struct: Structure hasn't been laid out yet

I'm running Xcode 4.5 DP4 (LLDB version is LLDB-163

thanks

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the lldb-dev mailing list