diff options
author | Enrico Granata <egranata@apple.com> | 2014-11-22 00:02:47 +0000 |
---|---|---|
committer | Enrico Granata <egranata@apple.com> | 2014-11-22 00:02:47 +0000 |
commit | 7e4df56aae9256aab00ceb24bf26b30d2ed6900b (patch) | |
tree | 79fda1df16543541c1a70b5295746de7d4fffb61 /lldb/source/Interpreter | |
parent | 4104b908cce949b47aa65e683df428fbf547d6ab (diff) | |
download | bcm5719-llvm-7e4df56aae9256aab00ceb24bf26b30d2ed6900b.tar.gz bcm5719-llvm-7e4df56aae9256aab00ceb24bf26b30d2ed6900b.zip |
Enable Python summaries to use custom SBTypeSummaryOptions if the user is so inclined. Updates to the webdoc will follow
llvm-svn: 222593
Diffstat (limited to 'lldb/source/Interpreter')
-rw-r--r-- | lldb/source/Interpreter/ScriptInterpreterPython.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lldb/source/Interpreter/ScriptInterpreterPython.cpp b/lldb/source/Interpreter/ScriptInterpreterPython.cpp index b340cc5faa9..d53a16bc820 100644 --- a/lldb/source/Interpreter/ScriptInterpreterPython.cpp +++ b/lldb/source/Interpreter/ScriptInterpreterPython.cpp @@ -1860,6 +1860,7 @@ bool ScriptInterpreterPython::GetScriptedSummary (const char *python_function_name, lldb::ValueObjectSP valobj, lldb::ScriptInterpreterObjectSP& callee_wrapper_sp, + const TypeSummaryOptions& options, std::string& retval) { @@ -1881,11 +1882,14 @@ ScriptInterpreterPython::GetScriptedSummary (const char *python_function_name, { Locker py_lock(this, Locker::AcquireLock | Locker::InitSession | Locker::NoSTDIN); { + TypeSummaryOptionsSP options_sp(new TypeSummaryOptions(options)); + Timer scoped_timer ("g_swig_typescript_callback","g_swig_typescript_callback"); ret_val = g_swig_typescript_callback (python_function_name, GetSessionDictionary().get(), valobj, &new_callee, + options_sp, retval); } } |