<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="">LLDB has a similar feature, except:</div><div class=""><br class=""></div><div class="">a) it tries to load python scripts from dSYM bundles. If you have debug info stored in foo.dSYM, it will look for foo.dSYM/Contents/Resources/Python/foo.py</div><div class="">As far as I know, dSYMs only exist on Apple systems, so clearly you would need to design something else to load from places other than such debug info bundles</div><div class=""><br class=""></div><div class="">b) the feature is off by default, but there's a setting you can tweak to enable it. That is due to security concerns</div><div class="">I have given some thought to ideas in that space (e.g. code-signatures for the script files) but no code exists to back those thoughts</div><br class=""><div><blockquote type="cite" class=""><div class="">On Oct 4, 2016, at 8:02 AM, Richard Geary 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="">Has LLDB considered adding per-binary support for LLDB python scripts,<br class="">eg. for adding custom type summaries?<br class=""><br class="">This is the equivalent GDB feature<br class=""><a href="https://sourceware.org/gdb/onlinedocs/gdb/dotdebug_005fgdb_005fscripts-section.html" class="">https://sourceware.org/gdb/onlinedocs/gdb/dotdebug_005fgdb_005fscripts-section.html</a><br class=""><br class="">GDB can load a custom python script from either a side-installed file<br class="">or an ELF section. This allows debugging of multiple binaries with<br class="">different implementations of the pretty-printer.<br class=""><br class="">Any suggestions for LLDB workarounds would be welcome.<br class="">_______________________________________________<br class="">lldb-dev mailing list<br class="">lldb-dev@lists.llvm.org<br class="">http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev<br class=""></div></div></blockquote></div><br class=""><div class="">
<div class="" style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><br class="Apple-interchange-newline">Thanks,</div><div class="" style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><i class="">- Enrico</i><br class="">📩 egranata@<font color="#ff2600" class=""></font>.com ☎️ 27683</div>
</div>
<br class=""></body></html>