diff options
| author | Johnny Chen <johnny.chen@apple.com> | 2011-07-11 20:06:28 +0000 |
|---|---|---|
| committer | Johnny Chen <johnny.chen@apple.com> | 2011-07-11 20:06:28 +0000 |
| commit | 9a07aba962569bfc4c63158f2c83dd06246f5700 (patch) | |
| tree | d6a22363661b18ce222dd9006669d987444f598d /lldb/test/lang/cpp/class_static/TestStaticVariables.py | |
| parent | 54fcc89abd6bd1130ceb406f1ddd735eba6f817d (diff) | |
| download | bcm5719-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.py | 14 |
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') |

