2019-09-24 12:20:33 +00:00
|
|
|
# REQUIRES: python
|
2019-09-17 03:55:58 +00:00
|
|
|
# RUN: echo 'b main' > %t.in
|
|
|
|
|
# RUN: echo 'run' >> %t.in
|
|
|
|
|
# RUN: echo 'command script import %S/Inputs/frame.py' >> %t.in
|
|
|
|
|
|
2019-10-30 15:57:16 +01:00
|
|
|
# RUN: %clang_host -g -O0 %S/Inputs/main.c -o %t.out
|
2019-09-18 12:58:52 +00:00
|
|
|
# RUN: %lldb -b -s %t.in -o 'script print("script: {}".format(lldb.frame))' %t.out | FileCheck %s
|
2019-09-17 03:55:58 +00:00
|
|
|
|
2019-09-18 00:30:01 +00:00
|
|
|
# Make sure that we don't have access to lldb.frame from the Python script.
|
2019-09-18 12:58:52 +00:00
|
|
|
# CHECK: frame.py: None
|
2019-09-18 00:30:01 +00:00
|
|
|
|
|
|
|
|
# Make sure that we do have access to lldb.frame from the script command.
|
|
|
|
|
# CHECK: script: frame #0
|