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 | |
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
-rw-r--r-- | lldb/test/expression_command/test/TestExprs.py | 10 | ||||
-rw-r--r-- | lldb/test/lang/c/array_types/TestArrayTypes.py | 18 | ||||
-rw-r--r-- | lldb/test/lang/c/bitfields/TestBitfields.py | 8 | ||||
-rw-r--r-- | lldb/test/lang/cpp/class_static/TestStaticVariables.py | 14 | ||||
-rw-r--r-- | lldb/test/python_api/process/TestProcessAPI.py | 6 |
5 files changed, 28 insertions, 28 deletions
diff --git a/lldb/test/expression_command/test/TestExprs.py b/lldb/test/expression_command/test/TestExprs.py index 0d9d1883158..86f9d03d3c4 100644 --- a/lldb/test/expression_command/test/TestExprs.py +++ b/lldb/test/expression_command/test/TestExprs.py @@ -139,27 +139,27 @@ class BasicExprCommandsTestCase(TestBase): startstr = "2.234") self.expect(val.GetTypeName(), "2.345 evaluated correctly", exe=False, startstr = "double") - self.DebugSBValue(frame, val) + self.DebugSBValue(val) val = frame.EvaluateExpression("argc") self.expect(val.GetValue(frame), "Argc evaluated correctly", exe=False, startstr = "4") - self.DebugSBValue(frame, val) + self.DebugSBValue(val) val = frame.EvaluateExpression("*argv[1]") self.expect(val.GetValue(frame), "Argv[1] evaluated correctly", exe=False, startstr = "'X'") - self.DebugSBValue(frame, val) + self.DebugSBValue(val) val = frame.EvaluateExpression("*argv[2]") self.expect(val.GetValue(frame), "Argv[2] evaluated correctly", exe=False, startstr = "'Y'") - self.DebugSBValue(frame, val) + self.DebugSBValue(val) val = frame.EvaluateExpression("*argv[3]") self.expect(val.GetValue(frame), "Argv[3] evaluated correctly", exe=False, startstr = "'Z'") - self.DebugSBValue(frame, val) + self.DebugSBValue(val) # rdar://problem/8686536 # CommandInterpreter::HandleCommand is stripping \'s from input for WantsRawCommand commands diff --git a/lldb/test/lang/c/array_types/TestArrayTypes.py b/lldb/test/lang/c/array_types/TestArrayTypes.py index af721413452..f43b87c9f5b 100644 --- a/lldb/test/lang/c/array_types/TestArrayTypes.py +++ b/lldb/test/lang/c/array_types/TestArrayTypes.py @@ -155,18 +155,18 @@ class ArrayTypesTestCase(TestBase): var = repr(variable) self.expect(var, "Variable for 'strings' looks good with correct name", exe=False, substrs = ["%s" % variable.GetName()]) - self.DebugSBValue(frame, variable) + self.DebugSBValue(variable) self.assertTrue(variable.GetNumChildren() == 4, "Variable 'strings' should have 4 children") child3 = variable.GetChildAtIndex(3) - self.DebugSBValue(frame, child3) + self.DebugSBValue(child3) self.assertTrue(child3.GetSummary(frame) == '"Guten Tag"', 'strings[3] == "Guten Tag"') # Lookup the "char_16" char array variable. variable = frame.FindVariable("char_16") - self.DebugSBValue(frame, variable) + self.DebugSBValue(variable) self.assertTrue(variable.GetNumChildren() == 16, "Variable 'char_16' should have 16 children") @@ -175,25 +175,25 @@ class ArrayTypesTestCase(TestBase): # base of 0 so that the proper radix is determined based on the contents # of the string. Same applies to long(). variable = frame.FindVariable("ushort_matrix") - self.DebugSBValue(frame, variable) + self.DebugSBValue(variable) self.assertTrue(variable.GetNumChildren() == 2, "Variable 'ushort_matrix' should have 2 children") child0 = variable.GetChildAtIndex(0) - self.DebugSBValue(frame, child0) + self.DebugSBValue(child0) self.assertTrue(child0.GetNumChildren() == 3, "Variable 'ushort_matrix[0]' should have 3 children") child0_2 = child0.GetChildAtIndex(2) - self.DebugSBValue(frame, child0_2) + self.DebugSBValue(child0_2) self.assertTrue(int(child0_2.GetValue(frame), 0) == 3, "ushort_matrix[0][2] == 3") # Lookup the "long_6" char array variable. variable = frame.FindVariable("long_6") - self.DebugSBValue(frame, variable) + self.DebugSBValue(variable) self.assertTrue(variable.GetNumChildren() == 6, "Variable 'long_6' should have 6 children") child5 = variable.GetChildAtIndex(5) - self.DebugSBValue(frame, child5) + self.DebugSBValue(child5) self.assertTrue(long(child5.GetValue(frame), 0) == 6, "long_6[5] == 6") @@ -204,7 +204,7 @@ class ArrayTypesTestCase(TestBase): "Variable 'long_6' should have '%s' value type." % value_type_to_str(lldb.eValueTypeVariableLocal)) argc = frame.FindVariable("argc") - self.DebugSBValue(frame, argc) + self.DebugSBValue(argc) self.assertTrue(argc.GetValueType() == lldb.eValueTypeVariableArgument, "Variable 'argc' should have '%s' value type." % value_type_to_str(lldb.eValueTypeVariableArgument)) diff --git a/lldb/test/lang/c/bitfields/TestBitfields.py b/lldb/test/lang/c/bitfields/TestBitfields.py index be091cb57cd..72b5ed2c338 100644 --- a/lldb/test/lang/c/bitfields/TestBitfields.py +++ b/lldb/test/lang/c/bitfields/TestBitfields.py @@ -110,7 +110,7 @@ class BitfieldsTestCase(TestBase): # Lookup the "bits" variable which contains 8 bitfields. frame = thread.GetFrameAtIndex(0) bits = frame.FindVariable("bits") - self.DebugSBValue(frame, bits) + self.DebugSBValue(bits) self.assertTrue(bits.GetTypeName() == "Bits" and bits.GetNumChildren() == 8 and bits.GetByteSize() == 4, @@ -120,7 +120,7 @@ class BitfieldsTestCase(TestBase): # so that the proper radix is determined based on the contents of the # string. b1 = bits.GetChildAtIndex(0) - self.DebugSBValue(frame, b1) + self.DebugSBValue(b1) self.assertTrue(b1.GetName() == "b1" and b1.GetTypeName() == "uint32_t:1" and b1.IsInScope(frame) and @@ -128,7 +128,7 @@ class BitfieldsTestCase(TestBase): 'bits.b1 has type uint32_t:1, is in scope, and == 1') b7 = bits.GetChildAtIndex(6) - self.DebugSBValue(frame, b7) + self.DebugSBValue(b7) self.assertTrue(b7.GetName() == "b7" and b7.GetTypeName() == "uint32_t:7" and b7.IsInScope(frame) and @@ -136,7 +136,7 @@ class BitfieldsTestCase(TestBase): 'bits.b7 has type uint32_t:7, is in scope, and == 127') four = bits.GetChildAtIndex(7) - self.DebugSBValue(frame, four) + self.DebugSBValue(four) self.assertTrue(four.GetName() == "four" and four.GetTypeName() == "uint32_t:4" and four.IsInScope(frame) and 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') diff --git a/lldb/test/python_api/process/TestProcessAPI.py b/lldb/test/python_api/process/TestProcessAPI.py index a9bdec546c8..00934990901 100644 --- a/lldb/test/python_api/process/TestProcessAPI.py +++ b/lldb/test/python_api/process/TestProcessAPI.py @@ -84,7 +84,7 @@ class ProcessAPITestCase(TestBase): # Get the SBValue for the global variable 'my_char'. val = frame.FindValue("my_char", lldb.eValueTypeVariableGlobal) - self.DebugSBValue(frame, val) + self.DebugSBValue(val) # If the variable does not have a load address, there's no sense continuing. if not val.GetLocation(frame).startswith("0x"): @@ -126,7 +126,7 @@ class ProcessAPITestCase(TestBase): # Get the SBValue for the global variable 'my_char'. val = frame.FindValue("my_char", lldb.eValueTypeVariableGlobal) - self.DebugSBValue(frame, val) + self.DebugSBValue(val) # If the variable does not have a load address, there's no sense continuing. if not val.GetLocation(frame).startswith("0x"): @@ -177,7 +177,7 @@ class ProcessAPITestCase(TestBase): # Get the SBValue for the global variable 'my_int'. val = frame.FindValue("my_int", lldb.eValueTypeVariableGlobal) - self.DebugSBValue(frame, val) + self.DebugSBValue(val) # If the variable does not have a load address, there's no sense continuing. if not val.GetLocation(frame).startswith("0x"): |