summaryrefslogtreecommitdiffstats
path: root/lldb/test/lang/cpp/class_static/TestStaticVariables.py
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2011-07-11 20:06:28 +0000
committerJohnny Chen <johnny.chen@apple.com>2011-07-11 20:06:28 +0000
commit9a07aba962569bfc4c63158f2c83dd06246f5700 (patch)
treed6a22363661b18ce222dd9006669d987444f598d /lldb/test/lang/cpp/class_static/TestStaticVariables.py
parent54fcc89abd6bd1130ceb406f1ddd735eba6f817d (diff)
downloadbcm5719-llvm-9a07aba962569bfc4c63158f2c83dd06246f5700.tar.gz
bcm5719-llvm-9a07aba962569bfc4c63158f2c83dd06246f5700.zip
The lldbtest.TestBase.DebugSBValue(self, val) method call now does not need the frame argument.
Only the val (of SBValue type) argument is needed. llvm-svn: 134915
Diffstat (limited to 'lldb/test/lang/cpp/class_static/TestStaticVariables.py')
-rw-r--r--lldb/test/lang/cpp/class_static/TestStaticVariables.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/lldb/test/lang/cpp/class_static/TestStaticVariables.py b/lldb/test/lang/cpp/class_static/TestStaticVariables.py
index 9e08fc2faf7..a7297d75976 100644
--- a/lldb/test/lang/cpp/class_static/TestStaticVariables.py
+++ b/lldb/test/lang/cpp/class_static/TestStaticVariables.py
@@ -102,7 +102,7 @@ class StaticVariableTestCase(TestBase):
valList = frame.GetVariables(False, False, True, False)
for val in valList:
- self.DebugSBValue(frame, val)
+ self.DebugSBValue(val)
self.assertTrue(val.GetValueType() == lldb.eValueTypeVariableGlobal)
name = val.GetName()
self.assertTrue(name in ['g_points', 'A::g_points'])
@@ -112,28 +112,28 @@ class StaticVariableTestCase(TestBase):
# On Mac OS X, gcc 4.2 emits the wrong debug info for A::g_points.
self.assertTrue(val.GetNumChildren() == 2)
child1 = val.GetChildAtIndex(1)
- self.DebugSBValue(frame, child1)
+ self.DebugSBValue(child1)
child1_x = child1.GetChildAtIndex(0)
- self.DebugSBValue(frame, child1_x)
+ self.DebugSBValue(child1_x)
self.assertTrue(child1_x.GetTypeName() == 'int' and
child1_x.GetValue(frame) == '11')
# SBFrame.FindValue() should also work.
val = frame.FindValue("A::g_points", lldb.eValueTypeVariableGlobal)
- self.DebugSBValue(frame, val)
+ self.DebugSBValue(val)
self.assertTrue(val.GetName() == 'A::g_points')
# Also exercise the "parameter" and "local" scopes while we are at it.
val = frame.FindValue("argc", lldb.eValueTypeVariableArgument)
- self.DebugSBValue(frame, val)
+ self.DebugSBValue(val)
self.assertTrue(val.GetName() == 'argc')
val = frame.FindValue("argv", lldb.eValueTypeVariableArgument)
- self.DebugSBValue(frame, val)
+ self.DebugSBValue(val)
self.assertTrue(val.GetName() == 'argv')
val = frame.FindValue("hello_world", lldb.eValueTypeVariableLocal)
- self.DebugSBValue(frame, val)
+ self.DebugSBValue(val)
self.assertTrue(val.GetName() == 'hello_world')
OpenPOWER on IntegriCloud