<div dir="ltr">You'll need a gdb pretty printer - currently libc++ doesn't provide/have any gdb pretty printers in-tree. the Chromium project has some though, which you could use. <a href="https://chromium.googlesource.com/chromium/src/+/master/third_party/libcxx-pretty-printers/printers.py">https://chromium.googlesource.com/chromium/src/+/master/third_party/libcxx-pretty-printers/printers.py</a></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Aug 6, 2019 at 1:05 PM 自己 via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div id="gmail-m_7292407719806235396contentDescription" style="line-height:1.5;text-align:justify">
<div>I have tried stl-views-1.0.3.gdb,but it didn't work!I found it is a llvm implement,when I print the list variable,it shows like:<br></div><div><br></div>
<div><div>$81 = {</div><div> <std::__1::__list_imp<LogBufferElement*, std::__1::allocator<LogBufferElement*> >> = {</div><div> __end_ = {</div><div> __prev_ = 0x7ee29b5940, </div><div> __next_ = 0x7ee2821d40</div><div> }, </div><div> __size_alloc_ = {</div><div> <std::__1::__compressed_pair_elem<unsigned long, 0, false>> = {</div><div> __value_ = 0x106b</div><div> }, </div><div> <std::__1::__compressed_pair_elem<std::__1::allocator<std::__1::__list_node<LogBufferElement*, void*> >, 1, true>> = {</div><div> <std::__1::allocator<std::__1::__list_node<LogBufferElement*, void*> >> = {<No data fields>}, <No data fields>}, <No data fields>}</div><div> }, <No data fields>}</div></div><div><br></div><div>according to the code <a href="http://llvm.org/svn/llvm-project/libcxx/branchestemplate" target="_blank">http://llvm.org/svn/llvm-project/libcxx/branchestemplate</a>,I tride the following command,But it failed!</div><div><div>(gdb) p /x ((LogBuffer *)0x7ee280dc00).mLogElements.__end_.__next_.__value_ There is no member or method named _value. </div></div><div><br></div><div>Anybody help me?</div>
<div class="gmail-m_7292407719806235396NETEASEMAILMASTERLOCALSIGNATURE">
<div id="gmail-m_7292407719806235396imail_signature"> <a href="https://maas.mail.163.com/dashi-web-extend/html/proSignature.html?ftlId=1&name=%E8%87%AA%E5%B7%B1&uid=hzy0719%40163.com&iconUrl=http%3A%2F%2Fmail-online.nosdn.127.net%2Fa518fb61dd72e48dc844a81b80cae9d9.jpg&items=%5B%22%E9%82%AE%E7%AE%B1%EF%BC%9Ahzy0719%40163.com%22%5D" style="display:block;background:rgb(255,255,255);max-width:400px;padding:15px 0px 10px;text-decoration:none;outline:none" target="_blank">
<table cellpadding="0" style="width:100%;max-width:100%;table-layout:fixed;border-collapse:collapse;color:rgb(155,158,161);font-size:14px;line-height:1.3">
<tbody style="word-break:break-all;font-family:"PingFang SC","Hiragino Sans GB","WenQuanYi Micro Hei","Microsoft Yahei",微软雅黑,verdana">
<tr>
<td width="38" style="padding:0px;box-sizing:border-box;width:38px">
<img width="38" height="38" style="vertical-align: middle; width: 38px; height: 38px; border-radius: 50%;" src="http://mail-online.nosdn.127.net/a518fb61dd72e48dc844a81b80cae9d9.jpg">
</td>
<td style="padding:0px 0px 0px 10px;color:rgb(49,53,59)">
<div style="font-size:16px;font-weight:bold;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis">自己</div>
</td>
</tr>
<tr width="100%" style="width:100%;font-size:14px">
<td colspan="2" style="padding:10px 0px 0px;width:100%;font-size:14px">
<div style="width:100%;word-break:break-all;font-size:14px">邮箱:hzy0719@163.com</div>
</td>
</tr>
</tbody>
</table>
</a><p style="border-top:1px solid rgb(229,229,229);padding-top:8px;font-size:12px;color:rgb(182,184,187);line-height:1.833">签名由 <a href="https://mail.163.com/dashi/dlpro.html?from=mail88" style="color:rgb(106,168,246);text-decoration:none" target="_blank">网易邮箱大师</a> 定制</p></div>
</div>
</div>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote></div>