<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">How can I navigate STL types using their overloaded operators and member functions (e.g., “[]” and “.first()” for vectors) ? For example, take a C++ source file with:</div><div class=""><br class=""></div><div class=""><font face="Monaco" class="">std::vector<std::string> v;</font></div><div class=""><font face="Monaco" class="">v.push_back("foo”);</font></div><div class=""><br class=""></div><div class="">Breaking after this statement in lldb and typing "p v[0]" would be reasonably expected to return "foo", but it gives a symbol lookup error. Similarly, “p v.first()” gives an error that there’s no member named “first”. I’m seeing this issue with clang/llvm 3.9 and 4.0 nightlies on Ubuntu 16.10 and with Apple’s versions on MacOS Sierra.</div><div class=""><br class=""></div><div class="">Internet rumor (e.g., <a href="http://stackoverflow.com/questions/39680320/printing-debugging-libc-stl-with-xcode-lldb/39731933" class="">this discussion</a>) says this is aggressive inlining of STL code. I’m compiling in clang++ with “-O0 -g -glldb”.</div><div class=""><br class=""></div><div class="">In comparison, gdb prints the value of v[0] just fine when compiled with gdb.</div><div class=""><br class=""></div><div class="">What am I doing wrong?</div></body></html>