[all-commits] [llvm/llvm-project] 347c5a: Add a new affordance that the Python module in a d...
jimingham via All-commits
all-commits at lists.llvm.org
Tue Apr 1 09:54:28 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 347c5a7af5adfe81b79dd77f7f88c626b09e8534
https://github.com/llvm/llvm-project/commit/347c5a7af5adfe81b79dd77f7f88c626b09e8534
Author: jimingham <jingham at apple.com>
Date: 2025-04-01 (Tue, 01 Apr 2025)
Changed paths:
M lldb/bindings/python/python-wrapper.swig
M lldb/include/lldb/Interpreter/ScriptInterpreter.h
M lldb/source/Core/Module.cpp
M lldb/source/Interpreter/ScriptInterpreter.cpp
M lldb/source/Plugins/ScriptInterpreter/Python/SWIGPythonBridge.h
M lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
M lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPythonImpl.h
A lldb/test/API/macosx/dsym_modules/Makefile
A lldb/test/API/macosx/dsym_modules/TestdSYMModuleInit.py
A lldb/test/API/macosx/dsym_modules/has_dsym.py
A lldb/test/API/macosx/dsym_modules/main.c
M lldb/unittests/ScriptInterpreter/Python/PythonTestSuite.cpp
Log Message:
-----------
Add a new affordance that the Python module in a dSYM (#133290)
So the dSYM can be told what target it has been loaded into.
When lldb is loading modules, while creating a target, it will run
"command script import" on any Python modules in Resources/Python in the
dSYM. However, this happens WHILE the target is being created, so it is
not yet in the target list. That means that these scripts can't act on
the target that they a part of when they get loaded.
This patch adds a new python API that lldb will call:
__lldb_module_added_to_target
if it is defined in the module, passing in the Target the module was
being added to, so that code in these dSYM's don't have to guess.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list