<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">We have a summary provider for std::string that is built into LLDB that must not be working with the C++ runtime you are using. The current summary string that is used is in source/Plugins/Language/CPlusPlus/CPlusPlusLanguage.cpp in <span style="background-color: rgb(255, 255, 255);" class="">LoadLibStdcppFormatters:</span><div class=""><span style="background-color: rgb(255, 255, 255);" class=""><br class=""></span></div><div class=""><div style="margin: 0px; font-stretch: normal; line-height: normal; background-color: rgb(255, 255, 255);" class="">  <span style="color: #326d74" class="">lldb</span>::<span style="color: #326d74" class="">TypeSummaryImplSP</span> std_string_summary_sp(</div><div style="margin: 0px; font-stretch: normal; line-height: normal; background-color: rgb(255, 255, 255);" class="">      <span style="color: #9b2393" class=""><b class="">new</b></span> <span style="color: #326d74" class="">StringSummaryFormat</span>(stl_summary_flags, <span style="color: #c41a16" class="">"${var._M_dataplus._M_p}"</span>));</div><div class=""><br class=""></div><div class="">So do a "frame var --raw msg" and see what the members of your std::string look like. I am guessing you won't see "<span style="caret-color: rgb(196, 26, 22); color: rgb(196, 26, 22); background-color: rgb(255, 255, 255);" class="">_M_dataplus" or "_M_p" in there. The "${var" means your std::string variable, and we are trying to access "msg.</span><span style="background-color: rgb(255, 255, 255);" class=""><font color="#c41a16" class=""><span style="caret-color: rgb(196, 26, 22);" class="">_M_dataplus._M_p" to see what the string looks like.</span></font></span></div><div class=""><span style="background-color: rgb(255, 255, 255);" class=""><font color="#c41a16" class=""><span style="caret-color: rgb(196, 26, 22);" class=""><br class=""></span></font></span></div><div><br class=""><blockquote type="cite" class=""><div class="">On Jun 24, 2019, at 10:26 PM, Bob Eastbrook via lldb-dev <<a href="mailto:lldb-dev@lists.llvm.org" class="">lldb-dev@lists.llvm.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">With Clang 8.0.0 and libstd++ 9.1.1 on Fedora 30 x86_64, I get this<br class="">error from LLDB when trying to see the value of a string:<br class=""><br class="">"error: summary string parsing error"<br class=""><br class="">The code is simply:<br class=""><br class="">std::string msg{"foo bar baz"};<br class=""><br class="">With libcxx 8.0.0, instead of the above error, I simply see "??" when<br class="">inspecting the msg variable.<br class=""><br class="">All of the above works fine for me in Ubuntu 19.04. I only have the<br class="">problem with Fedora 30.  Tried in both CLion and VS Code.<br class=""><br class="">How should I troubleshoot this?  Could I be missing a package?<br class="">_______________________________________________<br class="">lldb-dev mailing list<br class=""><a href="mailto:lldb-dev@lists.llvm.org" class="">lldb-dev@lists.llvm.org</a><br class="">https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev<br class=""></div></div></blockquote></div><br class=""></div></body></html>