<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Hi Enrico,<br><br>I downloaded the latest lldb version from svn (117) and now evereything works as expected:<br><br></div></blockquote><div><br></div><div>Glad to hear :)</div><br><blockquote type="cite"><div>(lldb) type summary add --python-function wstring.wstring_summary "std::wstring"<br>(lldb) frame variable aWideString<br>(std::wstring) aWideString = HELLO WORLD!!!<br><br>When using vectors of std::wstring I had to register the complete template name of std::wstring, but than it worked perfectly.<br><br></div></blockquote><div><br></div><div>It is a known scenario that depends on the debug info being emitted by the compiler. You are doing the right thing.</div><div>For std::string, we have a few workarounds in place so that users always see their strings no matter whether the long or short typename is used. For std::wstring we do not provide anything out-of-the-box, so you need to set things up this way yourself.</div><div><br></div><blockquote type="cite"><div>(lldb) type summary add --python-function wstring.wstring_summary "std::basic_string<int, class std::char_traits<int>, class std::allocator<int> >"<br>(lldb) frame variable aWideStringVector<br>(vector<std::basic_string<wchar_t>, std::allocator<std::basic_string<wchar_t> > >) aWideStringVector = {<br> [0] = Filter/EQ<br> [1] = Lowpass Filter<br> [2] = Wah Wah<br> [3] = Pitch Shift<br> [4] = Highpass Filter<br> [5] = Bandpass Filter<br> [6] = Combination<br> [7] = Notch Filter<br> [8] = Auto Filter<br> [9] = Distortion<br>}<br><br>Now I have two questions:<br>- Can I replace the "official" lldb with the one I build, so that I can use it within Xcode?<br></div></blockquote><div><br></div><div>Most probably it will not work, and Apple does not support it.</div><br><blockquote type="cite"><div>- Is there a possibility to always load the type summary for wstring?<br><br></div></blockquote><div><br></div><div>Yes. You can have a .lldbinit file in your home folder and LLDB will load commands from that file whenever it is launched.</div><div>An example is here: <a href="http://llvm.org/svn/llvm-project/lldb/trunk/examples/customization/pwd-cd-and-system/.lldbinit">http://llvm.org/svn/llvm-project/lldb/trunk/examples/customization/pwd-cd-and-system/.lldbinit</a></div><br><blockquote type="cite"><div>thanks,<br>Nino<br><br></div></blockquote><br></div>- <i>Enrico Granata</i></body></html>