diff options
| author | Pedro Tammela <pctammela@gmail.com> | 2020-12-06 14:30:57 +0000 |
|---|---|---|
| committer | Pedro Tammela <pctammela@gmail.com> | 2020-12-07 11:21:07 +0000 |
| commit | 280ae10774abac63d4c9fdaf99598afe3053540a (patch) | |
| tree | 51718cada153349293572877d444c9f8894c5a68 /lldb/test/Shell/ScriptInterpreter/Python | |
| parent | 7b1cb4715063679531e51127eee869cd03df88da (diff) | |
| download | llvm-280ae10774abac63d4c9fdaf99598afe3053540a.zip llvm-280ae10774abac63d4c9fdaf99598afe3053540a.tar.gz llvm-280ae10774abac63d4c9fdaf99598afe3053540a.tar.bz2 | |
[LLDB] fix error message for one-line breakpoint scripts
LLDB is ignoring compilation errors for one-line breakpoint scripts.
This patch fixes the issues and now the error message of the
ScriptInterpreter is shown to the user.
I had to remove a new-line character for the Lua interpreter since it
was duplicated.
Differential Revision: https://reviews.llvm.org/D92729
Diffstat (limited to 'lldb/test/Shell/ScriptInterpreter/Python')
| -rw-r--r-- | lldb/test/Shell/ScriptInterpreter/Python/fail_breakpoint_oneline.test | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lldb/test/Shell/ScriptInterpreter/Python/fail_breakpoint_oneline.test b/lldb/test/Shell/ScriptInterpreter/Python/fail_breakpoint_oneline.test new file mode 100644 index 0000000..d38df16 --- /dev/null +++ b/lldb/test/Shell/ScriptInterpreter/Python/fail_breakpoint_oneline.test @@ -0,0 +1,7 @@ +# REQUIRES: python +# UNSUPPORTED: lldb-repro +# +# RUN: %lldb -s %s --script-language python 2>&1 | FileCheck %s +b main +breakpoint command add -s python -o "1234_foo" +# CHECK: error: SyntaxError({{.*}}) |
