[lldb-dev] LLDB support for python scripts in ELF section, like .debug_gdb_scripts in GDB

Richard Geary via lldb-dev lldb-dev at lists.llvm.org
Tue Oct 4 08:00:33 PDT 2016


Has LLDB considered adding per-binary support for LLDB python scripts,
eg. for adding custom type summaries?

This is the equivalent GDB feature
https://sourceware.org/gdb/onlinedocs/gdb/dotdebug_005fgdb_005fscripts-section.html

GDB can load a custom python script from either a side-installed file
or an ELF section.  This allows debugging of multiple binaries with
different implementations of the pretty-printer.

Any suggestions for LLDB workarounds would be welcome.


More information about the lldb-dev mailing list