diff options
| author | Enrico Granata <granata.enrico@gmail.com> | 2011-08-17 19:07:52 +0000 |
|---|---|---|
| committer | Enrico Granata <granata.enrico@gmail.com> | 2011-08-17 19:07:52 +0000 |
| commit | 217f91fc57cb1067cad5358d74f44d6fc6075a57 (patch) | |
| tree | a018ccbbffc7fd35da9771ee2d2a486fc45085dc /lldb/source/Interpreter/ScriptInterpreterPython.cpp | |
| parent | 23594f6b4430bf525aa7351bda9d861290026d6d (diff) | |
| download | bcm5719-llvm-217f91fc57cb1067cad5358d74f44d6fc6075a57.tar.gz bcm5719-llvm-217f91fc57cb1067cad5358d74f44d6fc6075a57.zip | |
New category "gnu-libstdc++" provides summary for std::string and synthetic children for types std::map, std::list and std::vector
The category is enabled by default. If you run into issues with it, disable it and the previous behavior of LLDB is restored
** This is a temporary solution. The general solution to having formatters pulled in at startup should involve going through the Platform.
Fixed an issue in type synthetic list where a category with synthetic providers in it was not shown if all the providers were regex-based
llvm-svn: 137850
Diffstat (limited to 'lldb/source/Interpreter/ScriptInterpreterPython.cpp')
| -rw-r--r-- | lldb/source/Interpreter/ScriptInterpreterPython.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lldb/source/Interpreter/ScriptInterpreterPython.cpp b/lldb/source/Interpreter/ScriptInterpreterPython.cpp index e84cd699549..ba76849cc31 100644 --- a/lldb/source/Interpreter/ScriptInterpreterPython.cpp +++ b/lldb/source/Interpreter/ScriptInterpreterPython.cpp @@ -173,6 +173,11 @@ ScriptInterpreterPython::ScriptInterpreterPython (CommandInterpreter &interprete interpreter.GetDebugger().GetID()); PyRun_SimpleString (run_string.GetData()); + run_string.Clear(); + run_string.Printf ("run_one_line (%s, 'from osxcpp import *')", m_dictionary_name.c_str(), + interpreter.GetDebugger().GetID()); + PyRun_SimpleString (run_string.GetData()); + if (m_dbg_stdout != NULL) { m_new_sysout = PyFile_FromFile (m_dbg_stdout, (char *) "", (char *) "w", _check_and_flush); |

