llvm-c166/lldb/examples/python/templates
Med Ismail Bennani b05a5d0954
[lldb/script] Migrate synthetic children providers onto ScriptedPythonInterface (#210845)
Give `type synthetic add -l` a formal
`ScriptedSyntheticChildrenInterface`, matching the architecture used
elsewhere in this series: a C++ interface header, a Python-backed
implementation, `PluginManager` registration with CLI/API usages, and a
generatable ABC template (`scripted_synthetic_children.py`) wired into
`scripting extension generate`.

Every method goes through the shared `Dispatch<T>()` machinery instead
of hand-rolling its own Locker/raw-SWIG calls. `Dispatch<T>()` is taught
to introspect the target method's arity via
`PythonCallable::GetArgInfo()` and drop trailing args before calling, so
providers that legitimately define an argument as optional
(`num_children(self)` vs. `num_children(self, max_count)`) still work
through the generic dispatch path.

This retires the ad-hoc `LLDBSwigPython_*` synthetic-children bridge
functions entirely.

Signed-off-by: Med Ismail Bennani <ismail@bennani.ma>
2026-07-30 13:39:36 -07:00
..
operating_system.py
parsed_cmd.py
scripted_breakpoint.py
scripted_command.py
scripted_frame_provider.py
scripted_hook.py
scripted_platform.py
scripted_process.py
scripted_stackframe_recognizer.py
scripted_string_summary.py
scripted_synthetic_children.py
scripted_thread_plan.py