<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
Do i understand correctly that you're basically advocating for a QoL
change that'll make lldb commands `p V` and `p V.dump()` equivalent?<br>
<br>
<div class="moz-cite-prefix">On 05.08.2020 10:40, Balázs Benics via
cfe-dev wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAF2=K3WR3Uoj7j8MV-9pjNxV1944YK2WT_fqCVg_SqDsh9kSgg@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">I was thinking about some pretty printers.<br>
And I'm thinking about SVals and SymExprs specifically.<br>
<br>
Why do we have no pretty printers for such types?<br>
<br>
I guess we could reuse their <span
style="font-family:monospace">dump()</span> method to acquire
string representation.<br>
The only problem is that that dumps the output to the <i>standard
error stream</i>.<br>
<br>
What options do I have to get a python pretty-printer using this
dump method?<br>
<br>
Another possible way to implement such a pretty printer is to
hardcode the SVal<br>
kinds in python to do the right thing for each case.<br>
I'm not really a big fan of this way though.<br>
<br>
If you have experience with gdb pretty printers then your
comments more then welcomed.<br>
<br>
Balazs.</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
cfe-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a>
<a class="moz-txt-link-freetext" href="https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev">https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a>
</pre>
</blockquote>
<br>
</body>
</html>