From 36bce68b97316363085ae3681e8dde33a62fc9b1 Mon Sep 17 00:00:00 2001 From: jimingham Date: Thu, 9 Oct 2025 08:37:21 -0700 Subject: Add a scripted way to re-present a stop location (#158128) This patch adds the notion of "Facade" locations which can be reported from a ScriptedResolver instead of the actual underlying breakpoint location for the breakpoint. Also add a "was_hit" method to the scripted resolver that allows the breakpoint to say which of these "Facade" locations was hit, and "get_location_description" to provide a description for the facade locations. I apologize in advance for the size of the patch. Almost all of what's here was necessary to (a) make the feature testable and (b) not break any of the current behavior. The motivation for this feature is given in the "Providing Facade Locations" section that I added to the python-reference.rst so I won't repeat it here. rdar://152112327 --- lldb/unittests/ScriptInterpreter/Python/PythonTestSuite.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'lldb/unittests/ScriptInterpreter/Python/PythonTestSuite.cpp') diff --git a/lldb/unittests/ScriptInterpreter/Python/PythonTestSuite.cpp b/lldb/unittests/ScriptInterpreter/Python/PythonTestSuite.cpp index 068860e..6f5d9fd 100644 --- a/lldb/unittests/ScriptInterpreter/Python/PythonTestSuite.cpp +++ b/lldb/unittests/ScriptInterpreter/Python/PythonTestSuite.cpp @@ -105,6 +105,11 @@ void *lldb_private::python::LLDBSWIGPython_CastPyObjectToSBBreakpoint( return nullptr; } +void *lldb_private::python::LLDBSWIGPython_CastPyObjectToSBBreakpointLocation( + PyObject *data) { + return nullptr; +} + void *lldb_private::python::LLDBSWIGPython_CastPyObjectToSBAttachInfo( PyObject *data) { return nullptr; @@ -130,6 +135,11 @@ lldb_private::python::LLDBSWIGPython_CastPyObjectToSBStream(PyObject *data) { return nullptr; } +void * +lldb_private::python::LLDBSWIGPython_CastPyObjectToSBFrame(PyObject *data) { + return nullptr; +} + void *lldb_private::python::LLDBSWIGPython_CastPyObjectToSBSymbolContext( PyObject *data) { return nullptr; -- cgit v1.1