Print out the frame only if self.TraceOn() is True.

llvm-svn: 149893
This commit is contained in:
Johnny Chen 2012-02-06 19:36:29 +00:00
parent 546ba363ea
commit a27a16c04d
1 changed files with 2 additions and 1 deletions

View File

@ -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():