diff options
| author | Jim Ingham <jingham@apple.com> | 2014-11-22 01:33:22 +0000 |
|---|---|---|
| committer | Jim Ingham <jingham@apple.com> | 2014-11-22 01:33:22 +0000 |
| commit | 0f17c5570d2541a90cb963e740cd20b19adcbc67 (patch) | |
| tree | cf26071683275c089f6403a7f2bcb94fafcc4d83 /lldb/tools/driver/Driver.h | |
| parent | 86903b70fc4a3f17d4b4c208367632d0f7759085 (diff) | |
| download | bcm5719-llvm-0f17c5570d2541a90cb963e740cd20b19adcbc67.tar.gz bcm5719-llvm-0f17c5570d2541a90cb963e740cd20b19adcbc67.zip | |
Make the sourcing of the local .lldbinit file quiet.
<rdar://problem/19065278>
llvm-svn: 222599
Diffstat (limited to 'lldb/tools/driver/Driver.h')
| -rw-r--r-- | lldb/tools/driver/Driver.h | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/lldb/tools/driver/Driver.h b/lldb/tools/driver/Driver.h index 5316c57f7d8..38b125481d9 100644 --- a/lldb/tools/driver/Driver.h +++ b/lldb/tools/driver/Driver.h @@ -75,17 +75,30 @@ public: Clear(); void - AddInitialCommand (const char *command, CommandPlacement placement, bool is_file, lldb::SBError &error); + AddInitialCommand (const char *command, CommandPlacement placement, bool is_file, bool quietly, lldb::SBError &error); //static OptionDefinition m_cmd_option_table[]; + struct InitialCmdEntry + { + InitialCmdEntry (const char *in_contents, bool in_is_file, bool in_quiet = false) : + contents (in_contents), + is_file (in_is_file), + source_quietly(in_quiet) + {} + + std::string contents; + bool is_file; + bool source_quietly; + }; + std::vector<std::string> m_args; lldb::ScriptLanguage m_script_lang; std::string m_core_file; std::string m_crash_log; - std::vector<std::pair<bool,std::string> > m_initial_commands; - std::vector<std::pair<bool,std::string> > m_after_file_commands; - std::vector<std::pair<bool,std::string> > m_after_crash_commands; + std::vector<InitialCmdEntry> m_initial_commands; + std::vector<InitialCmdEntry> m_after_file_commands; + std::vector<InitialCmdEntry> m_after_crash_commands; bool m_debug_mode; bool m_source_quietly; bool m_print_version; |

