diff options
author | Jim Ingham <jingham@apple.com> | 2014-10-11 00:38:27 +0000 |
---|---|---|
committer | Jim Ingham <jingham@apple.com> | 2014-10-11 00:38:27 +0000 |
commit | 26c7bf9312939025f710bd4c4e0174488da25c7c (patch) | |
tree | a4c57cdaba6967e417a24316a9d92f932dbf01f9 /lldb/source/Commands/CommandObjectBreakpointCommand.cpp | |
parent | 41c79d934ba10ba61beef70534ec3fed410f5ab0 (diff) | |
download | bcm5719-llvm-26c7bf9312939025f710bd4c4e0174488da25c7c.tar.gz bcm5719-llvm-26c7bf9312939025f710bd4c4e0174488da25c7c.zip |
Rework the way we pass "run multiple command" options to the various API's that
do that (RunCommandInterpreter, HandleCommands, HandleCommandsFromFile) to gather
the options into an options class. Also expose that to the SB API's.
Change the way the "-o" options to the lldb driver are processed so:
1) They are run synchronously - didn't really make any sense to run the asynchronously.
2) The stop on error
3) "quit" in one of the -o commands will not quit lldb - not the command interpreter
that was running the -o commands.
I added an entry to the run options to stop-on-crash, but I haven't implemented that yet.
llvm-svn: 219553
Diffstat (limited to 'lldb/source/Commands/CommandObjectBreakpointCommand.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectBreakpointCommand.cpp | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/lldb/source/Commands/CommandObjectBreakpointCommand.cpp b/lldb/source/Commands/CommandObjectBreakpointCommand.cpp index fdb87d11900..955c26f99d3 100644 --- a/lldb/source/Commands/CommandObjectBreakpointCommand.cpp +++ b/lldb/source/Commands/CommandObjectBreakpointCommand.cpp @@ -307,17 +307,16 @@ one command per line.\n" ); result.SetImmediateOutputStream (output_stream); result.SetImmediateErrorStream (error_stream); - bool stop_on_continue = true; - bool echo_commands = false; - bool print_results = true; - - debugger.GetCommandInterpreter().HandleCommands (commands, + CommandInterpreterRunOptions options; + options.SetStopOnContinue(true); + options.SetStopOnError (data->stop_on_error); + options.SetEchoCommands (true); + options.SetPrintResults (true); + options.SetAddToHistory (false); + + debugger.GetCommandInterpreter().HandleCommands (commands, &exe_ctx, - stop_on_continue, - data->stop_on_error, - echo_commands, - print_results, - eLazyBoolNo, + options, result); result.GetImmediateOutputStream()->Flush(); result.GetImmediateErrorStream()->Flush(); |