diff options
| author | Jonas Devlieghere <jonas@devlieghere.com> | 2019-05-08 01:23:47 +0000 |
|---|---|---|
| committer | Jonas Devlieghere <jonas@devlieghere.com> | 2019-05-08 01:23:47 +0000 |
| commit | c0b48ab6318026121241f90430b337ea2c7ee384 (patch) | |
| tree | b1d98c9625043e167c8453730ada76b5b34763f5 /lldb/source/Breakpoint/BreakpointOptions.cpp | |
| parent | ba670b404e3f05f7c9b9cf483bca89f647a74957 (diff) | |
| download | bcm5719-llvm-c0b48ab6318026121241f90430b337ea2c7ee384.tar.gz bcm5719-llvm-c0b48ab6318026121241f90430b337ea2c7ee384.zip | |
Propagate command interpreter errors from lldlbinit
This patch ensures that we propagate errors coming from the lldbinit
file trough the command/script interpreter. Before, if you did something
like command script import syntax_error.py, and the python file
contained a syntax error, lldb wouldn't tell you about it. This changes
with the current patch: errors are now propagated by default.
PS: Jim authored this change and I added testing.
Differential revision: https://reviews.llvm.org/D61579
llvm-svn: 360216
Diffstat (limited to 'lldb/source/Breakpoint/BreakpointOptions.cpp')
| -rw-r--r-- | lldb/source/Breakpoint/BreakpointOptions.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lldb/source/Breakpoint/BreakpointOptions.cpp b/lldb/source/Breakpoint/BreakpointOptions.cpp index 16d0bd43b91..f6f279dc382 100644 --- a/lldb/source/Breakpoint/BreakpointOptions.cpp +++ b/lldb/source/Breakpoint/BreakpointOptions.cpp @@ -646,6 +646,7 @@ bool BreakpointOptions::BreakpointOptionsCallbackFunction( options.SetStopOnError(data->stop_on_error); options.SetEchoCommands(true); options.SetPrintResults(true); + options.SetPrintErrors(true); options.SetAddToHistory(false); debugger.GetCommandInterpreter().HandleCommands(commands, &exe_ctx, |

