diff options
| author | Johnny Chen <johnny.chen@apple.com> | 2012-02-06 19:36:29 +0000 |
|---|---|---|
| committer | Johnny Chen <johnny.chen@apple.com> | 2012-02-06 19:36:29 +0000 |
| commit | a27a16c04d8ecbd52e312edf03d4607508955bf8 (patch) | |
| tree | 4ea6a5c50ceca007682aa5704781580e06145a56 /lldb/test/python_api/sbdata | |
| parent | 546ba363eaa8407154540cc87c2fb0e849e56788 (diff) | |
| download | bcm5719-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.py | 3 |
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(): |

