diff options
author | Jim Ingham <jingham@apple.com> | 2014-10-14 01:20:07 +0000 |
---|---|---|
committer | Jim Ingham <jingham@apple.com> | 2014-10-14 01:20:07 +0000 |
commit | ffc9f1de340dcd49f872303c17a93aa69bf92fbc (patch) | |
tree | 797486122523a141b85ff3c9c21803f4504e52f0 /lldb/scripts/Python | |
parent | 07e9ad3c12998ec2d6a9bb365e9237b7ebfb0343 (diff) | |
download | bcm5719-llvm-ffc9f1de340dcd49f872303c17a93aa69bf92fbc.tar.gz bcm5719-llvm-ffc9f1de340dcd49f872303c17a93aa69bf92fbc.zip |
This adds a "batch mode" to lldb kinda like the gdb batch mode. It will quit the debugger
after all the commands have been executed except if one of the commands was an execution control
command that stopped because of a signal or exception.
Also adds a variant of SBCommandInterpreter::HandleCommand that takes an SBExecutionContext. That
way you can run an lldb command targeted at a particular target, thread or process w/o having to
select same before running the command.
Also exposes CommandInterpreter::HandleCommandsFromFile to the SBCommandInterpreter API, since that
seemed generally useful.
llvm-svn: 219654
Diffstat (limited to 'lldb/scripts/Python')
-rw-r--r-- | lldb/scripts/Python/interface/SBCommandInterpreter.i | 9 | ||||
-rw-r--r-- | lldb/scripts/Python/interface/SBDebugger.i | 3 |
2 files changed, 11 insertions, 1 deletions
diff --git a/lldb/scripts/Python/interface/SBCommandInterpreter.i b/lldb/scripts/Python/interface/SBCommandInterpreter.i index 856038094f7..0a795adb038 100644 --- a/lldb/scripts/Python/interface/SBCommandInterpreter.i +++ b/lldb/scripts/Python/interface/SBCommandInterpreter.i @@ -182,6 +182,15 @@ public: lldb::ReturnStatus HandleCommand (const char *command_line, lldb::SBCommandReturnObject &result, bool add_to_history = false); + lldb::ReturnStatus + HandleCommand (const char *command_line, SBExecutionContext &exe_ctx, SBCommandReturnObject &result, bool add_to_history = false); + + void + HandleCommandsFromFile (lldb::SBFileSpec &file, + lldb::SBExecutionContext &override_context, + lldb::SBCommandInterpreterRunOptions &options, + lldb::SBCommandReturnObject result); + int HandleCompletion (const char *current_line, uint32_t cursor_pos, diff --git a/lldb/scripts/Python/interface/SBDebugger.i b/lldb/scripts/Python/interface/SBDebugger.i index fb63fc362dc..48e0d5db638 100644 --- a/lldb/scripts/Python/interface/SBDebugger.i +++ b/lldb/scripts/Python/interface/SBDebugger.i @@ -369,7 +369,8 @@ public: bool spawn_thread, SBCommandInterpreterRunOptions &options, int &num_errors, - bool &quit_requested); + bool &quit_requested, + bool &stopped_for_crash); }; // class SBDebugger } // namespace lldb |