This adds a "batch mode" to lldb kinda like the gdb batch mode. It will quit the...
authorJim Ingham <jingham@apple.com>
Tue, 14 Oct 2014 01:20:07 +0000 (01:20 +0000)
committerJim Ingham <jingham@apple.com>
Tue, 14 Oct 2014 01:20:07 +0000 (01:20 +0000)
commitffc9f1de340dcd49f872303c17a93aa69bf92fbc
tree797486122523a141b85ff3c9c21803f4504e52f0
parent07e9ad3c12998ec2d6a9bb365e9237b7ebfb0343
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
14 files changed:
lldb/include/lldb/API/SBCommandInterpreter.h
lldb/include/lldb/API/SBDebugger.h
lldb/include/lldb/API/SBExecutionContext.h
lldb/include/lldb/API/SBFileSpec.h
lldb/include/lldb/Interpreter/CommandInterpreter.h
lldb/lldb.xcodeproj/xcshareddata/xcschemes/lldb-tool.xcscheme
lldb/scripts/Python/interface/SBCommandInterpreter.i
lldb/scripts/Python/interface/SBDebugger.i
lldb/source/API/SBCommandInterpreter.cpp
lldb/source/API/SBDebugger.cpp
lldb/source/API/SBExecutionContext.cpp
lldb/source/Interpreter/CommandInterpreter.cpp
lldb/tools/driver/Driver.cpp
lldb/tools/driver/Driver.h