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 [lldb/script] Add type hints to scripted extension base classes (#209680) 2026-07-15 16:23:00 +00:00
parsed_cmd.py Make flag-only options work in the ParsedCommand mode of adding commands (#157756) 2025-09-10 09:27:29 -07:00
scripted_breakpoint.py [lldb/script] Add type hints to scripted extension base classes (#209680) 2026-07-15 16:23:00 +00:00
scripted_command.py [lldb/script] Migrate ParsedCommand & raw commands onto ScriptedPythonInterface (#210430) 2026-07-28 17:09:59 -07:00
scripted_frame_provider.py [lldb/script] Add type hints to scripted extension base classes (#209680) 2026-07-15 16:23:00 +00:00
scripted_hook.py [lldb/script] Add type hints to scripted extension base classes (#209680) 2026-07-15 16:23:00 +00:00
scripted_platform.py [lldb/script] Add type hints to scripted extension base classes (#209680) 2026-07-15 16:23:00 +00:00
scripted_process.py [lldb/script] Add type hints to scripted extension base classes (#209680) 2026-07-15 16:23:00 +00:00
scripted_stackframe_recognizer.py [lldb/script] Migrate frame recognizers onto ScriptedPythonInterface (#209805) 2026-07-16 18:00:26 -07:00
scripted_string_summary.py [lldb/script] Add class-based summary providers via ScriptedStringSummaryInterface (#210469) 2026-07-29 18:44:26 -07:00
scripted_synthetic_children.py [lldb/script] Migrate synthetic children providers onto ScriptedPythonInterface (#210845) 2026-07-30 13:39:36 -07:00
scripted_thread_plan.py [lldb/script] Add type hints to scripted extension base classes (#209680) 2026-07-15 16:23:00 +00:00