diff options
| author | Jim Ingham <jingham@apple.com> | 2019-10-03 22:50:18 +0000 |
|---|---|---|
| committer | Jim Ingham <jingham@apple.com> | 2019-10-03 22:50:18 +0000 |
| commit | 27a14f19c810f494adddb8aaff960336ab4492e7 (patch) | |
| tree | a7eae222175b77917ee9ccfd1b0f21555d7118f4 /lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h | |
| parent | 145cdad11925194ec41949b5c8f0cb037f9e7941 (diff) | |
| download | llvm-27a14f19c810f494adddb8aaff960336ab4492e7.zip llvm-27a14f19c810f494adddb8aaff960336ab4492e7.tar.gz llvm-27a14f19c810f494adddb8aaff960336ab4492e7.tar.bz2 | |
Pass an SBStructuredData to scripted ThreadPlans on use.
This will allow us to write reusable scripted ThreadPlans, since
you can use key/value pairs with known keys in the plan to parametrize
its behavior.
Differential Revision: https://reviews.llvm.org/D68366
llvm-svn: 373675
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h')
| -rw-r--r-- | lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h b/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h index 8fd2be1..9e4a120 100644 --- a/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h +++ b/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h @@ -438,6 +438,10 @@ public: void Reset(PyRefType type, PyObject *py_obj) override; ArgInfo GetNumArguments() const; + + // If the callable is a Py_Class, then find the number of arguments + // of the __init__ method. + ArgInfo GetNumInitArguments() const; PythonObject operator()(); |
