aboutsummaryrefslogtreecommitdiff
path: root/tools/driver/Driver.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/driver/Driver.h')
-rw-r--r--tools/driver/Driver.h17
1 files changed, 10 insertions, 7 deletions
diff --git a/tools/driver/Driver.h b/tools/driver/Driver.h
index 2a4a27df4cdc..dcfd5ed11cd1 100644
--- a/tools/driver/Driver.h
+++ b/tools/driver/Driver.h
@@ -10,6 +10,7 @@
#ifndef lldb_Driver_h_
#define lldb_Driver_h_
+#include "Platform.h"
#include "lldb/Utility/PseudoTerminal.h"
#include <set>
@@ -83,12 +84,9 @@ public:
lldb::ScriptLanguage
GetScriptLanguage() const;
- size_t
- GetNumSourceCommandFiles () const;
-
- const char *
- GetSourceCommandFileAtIndex (uint32_t idx) const;
-
+ void
+ ExecuteInitialCommands (bool before_file);
+
bool
GetDebugMode() const;
@@ -102,14 +100,19 @@ public:
void
Clear();
+ void
+ AddInitialCommand (const char *command, bool before_file, bool is_file, lldb::SBError &error);
+
//static OptionDefinition m_cmd_option_table[];
std::vector<std::string> m_args;
lldb::ScriptLanguage m_script_lang;
std::string m_core_file;
std::string m_crash_log;
- std::vector<std::string> m_source_command_files;
+ std::vector<std::pair<bool,std::string> > m_initial_commands;
+ std::vector<std::pair<bool,std::string> > m_after_file_commands;
bool m_debug_mode;
+ bool m_source_quietly;
bool m_print_version;
bool m_print_python_path;
bool m_print_help;