From 280ae10774abac63d4c9fdaf99598afe3053540a Mon Sep 17 00:00:00 2001 From: Pedro Tammela Date: Sun, 6 Dec 2020 14:30:57 +0000 Subject: [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 --- .../Shell/ScriptInterpreter/Python/fail_breakpoint_oneline.test | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 lldb/test/Shell/ScriptInterpreter/Python/fail_breakpoint_oneline.test (limited to 'lldb/test/Shell/ScriptInterpreter/Python') 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({{.*}}) -- cgit v1.1