[Lldb-commits] [PATCH] D117237: [lldb] Use __lldb_init_module instead of "if lldb.debugger" idiom
Greg Clayton via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Thu Jan 13 14:12:28 PST 2022
clayborg added inline comments.
================
Comment at: lldb/docs/use/python-reference.rst:598
if __name__ == '__main__':
# Create a new debugger instance in your module if your module
# can be run from the command line. When we run a script from
----------------
We need to initialize the debugger first before doing anything or no plug-ins will be available:
================
Comment at: lldb/docs/use/python-reference.rst:608
+ # Finally, dispose of the debugger you just made.
+ lldb.SBDebugger.Destroy(debugger)
+
----------------
We also need to terminate using the static terminate function.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D117237/new/
https://reviews.llvm.org/D117237
More information about the lldb-commits
mailing list