Files
clang-p2996/lldb/test/Shell/ScriptInterpreter/Lua/fail_breakpoint_oneline.test
Pedro Tammela 280ae10774 [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
2020-12-07 11:21:07 +00:00

6 lines
181 B
Plaintext

# REQUIRES: lua
# RUN: %lldb -s %s --script-language lua 2>&1 | FileCheck %s
b main
breakpoint command add -s lua -o '1234_foo'
# CHECK: error: {{.*}} unexpected symbol near '1234'