[all-commits] [llvm/llvm-project] bf0258: [lldb] Call __lldb_init_module from __init__
Dave Lee via All-commits
all-commits at lists.llvm.org
Mon Feb 7 14:44:07 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: bf02586c57ced32ca66fd98fa3208b632820b1c6
https://github.com/llvm/llvm-project/commit/bf02586c57ced32ca66fd98fa3208b632820b1c6
Author: Dave Lee <davelee.com at gmail.com>
Date: 2022-02-07 (Mon, 07 Feb 2022)
Changed paths:
M lldb/bindings/python/createPythonInit.py
Log Message:
-----------
[lldb] Call __lldb_init_module from __init__
Update `__init__.py` generation to implement `__lldb_init_module`, which calls
`__lldb_init_module` on submodules that define it.
This allows the use case where a user runs `command script import lldb.macosx`.
With this change, the `__lldb_init_module` function in `crashlog.py` and
`heap.py` will be run, which is where command registration is occurring.
Differential Revision: https://reviews.llvm.org/D119179
More information about the All-commits
mailing list