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>
23 lines
542 B
Plaintext
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
|