summaryrefslogtreecommitdiffstats
path: root/lldb/test/python_api/sbdata
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2012-02-06 19:36:29 +0000
committerJohnny Chen <johnny.chen@apple.com>2012-02-06 19:36:29 +0000
commita27a16c04d8ecbd52e312edf03d4607508955bf8 (patch)
tree4ea6a5c50ceca007682aa5704781580e06145a56 /lldb/test/python_api/sbdata
parent546ba363eaa8407154540cc87c2fb0e849e56788 (diff)
downloadbcm5719-llvm-a27a16c04d8ecbd52e312edf03d4607508955bf8.tar.gz
bcm5719-llvm-a27a16c04d8ecbd52e312edf03d4607508955bf8.zip
Print out the frame only if self.TraceOn() is True.
llvm-svn: 149893
Diffstat (limited to 'lldb/test/python_api/sbdata')
-rw-r--r--lldb/test/python_api/sbdata/TestSBData.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/test/python_api/sbdata/TestSBData.py b/lldb/test/python_api/sbdata/TestSBData.py
index e9856d7b85e..2469d8f7a4b 100644
--- a/lldb/test/python_api/sbdata/TestSBData.py
+++ b/lldb/test/python_api/sbdata/TestSBData.py
@@ -53,7 +53,8 @@ class SBDataAPICase(TestBase):
thread = process.GetThreadAtIndex(0)
frame = thread.GetSelectedFrame()
- print frame
+ if self.TraceOn():
+ print frame
foobar = frame.FindVariable('foobar')
self.assertTrue(foobar.IsValid())
if self.TraceOn():
OpenPOWER on IntegriCloud