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@cs.uiuc.edu
ReportedBy: dmarkman@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