Files
clang-p2996/lldb/test/Shell/ScriptInterpreter/Lua/breakpoint_function_callback.test
Med Ismail Bennani c9ecaf32f6 [lldb] Fix test failure for breakpoint_function_callback.test
This should fix the test failure in breakpoint_function_callback.test
since SBStructuredData can now display the content of SBStructuredData.

Signed-off-by: Med Ismail Bennani <ismail@bennani.ma>
2023-08-31 22:19:02 +01:00

23 lines
542 B
Plaintext

# RUN: echo "int main() { return 0; }" | %clang_host -x c - -o %t
# RUN: %lldb -s %s --script-language lua %t 2>&1 | FileCheck %s
b main
script
function abc(a, b, c, ...)
print(c)
if c then print(c:GetValueForKey("foo"):GetStringValue(32)) end
end
quit
breakpoint command add -s lua -F abc
r
# CHECK: nil
breakpoint command add -s lua -F abc -k foo -v 123pizza!
r
# CHECK: foo: 123pizza!
# CHECK: 123pizza!
breakpoint command add -s lua -o "abc(frame, bp_loc, ...)"
r
# CHECK: nil
breakpoint command add -s lua -F typo
r
# CHECK: a nil value