This is an archive of the discontinued LLVM Phabricator instance.

[lldb] Call __lldb_init_module from __init__
ClosedPublic

Authored by kastiglione on Feb 7 2022, 12:27 PM.

Details

Summary

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.

Diff Detail

Event Timeline

kastiglione requested review of this revision.Feb 7 2022, 12:27 PM
kastiglione created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptFeb 7 2022, 12:27 PM
JDevlieghere accepted this revision.Feb 7 2022, 1:39 PM

Ship it

This revision is now accepted and ready to land.Feb 7 2022, 1:39 PM
This revision was automatically updated to reflect the committed changes.