diff options
author | jimingham <jingham@apple.com> | 2025-10-09 08:37:21 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-10-09 08:37:21 -0700 |
commit | 36bce68b97316363085ae3681e8dde33a62fc9b1 (patch) | |
tree | a7d732cc45aae98d91fc8747efd27c655ea5c423 /lldb/unittests/ScriptInterpreter/Python/PythonTestSuite.cpp | |
parent | c4f36758b73fbf651650d8b650347e0ac172795f (diff) | |
download | llvm-36bce68b97316363085ae3681e8dde33a62fc9b1.zip llvm-36bce68b97316363085ae3681e8dde33a62fc9b1.tar.gz llvm-36bce68b97316363085ae3681e8dde33a62fc9b1.tar.bz2 |
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
Diffstat (limited to 'lldb/unittests/ScriptInterpreter/Python/PythonTestSuite.cpp')
-rw-r--r-- | lldb/unittests/ScriptInterpreter/Python/PythonTestSuite.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
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; |