diff options
author | Enrico Granata <egranata@apple.com> | 2016-06-24 02:07:15 +0000 |
---|---|---|
committer | Enrico Granata <egranata@apple.com> | 2016-06-24 02:07:15 +0000 |
commit | a5d6765cb04214b10b5b5b550e554c5411c03b43 (patch) | |
tree | 23ea54790d247d50d16323a95ee044b9d5bbd0cf /lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h | |
parent | 68f7f1cf00a0405446fe765d2ed6e583a6e5947b (diff) | |
download | llvm-a5d6765cb04214b10b5b5b550e554c5411c03b43.zip llvm-a5d6765cb04214b10b5b5b550e554c5411c03b43.tar.gz llvm-a5d6765cb04214b10b5b5b550e554c5411c03b43.tar.bz2 |
Fix an issue where the @lldb.command marker would not work with the new 5-argument version of the Python command function
This:
a) teaches PythonCallable to look inside a callable object
b) teaches PythonCallable to discover whether a callable method is bound
c) teaches lldb.command to dispatch to either the older 4 argument version or the newer 5 argument version
llvm-svn: 273640
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h')
-rw-r--r-- | lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h b/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h index 2bcb967c..78245a9 100644 --- a/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h +++ b/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h @@ -502,6 +502,7 @@ class PythonCallable : public PythonObject public: struct ArgInfo { size_t count; + bool is_bound_method : 1; bool has_varargs : 1; bool has_kwargs : 1; }; |