summaryrefslogtreecommitdiffstats
path: root/lldb/test/python_api/frame
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2011-08-03 22:57:10 +0000
committerGreg Clayton <gclayton@apple.com>2011-08-03 22:57:10 +0000
commitfe42ac4d0a4836829616d054c524e8cc10b25b88 (patch)
treebf0d085081bec250842526fb9342d48dcbae138b /lldb/test/python_api/frame
parent3ef20e35f9181c28650f60c3845c4b1c737853fb (diff)
downloadbcm5719-llvm-fe42ac4d0a4836829616d054c524e8cc10b25b88.tar.gz
bcm5719-llvm-fe42ac4d0a4836829616d054c524e8cc10b25b88.zip
Cleaned up the SBType.h file to not include internal headers and reorganized
the SBType implementation classes. Fixed LLDB core and the test suite to not use deprecated SBValue APIs. Added a few new APIs to SBValue: int64_t SBValue::GetValueAsSigned(int64_t fail_value=0); uint64_t SBValue::GetValueAsUnsigned(uint64_t fail_value=0) llvm-svn: 136829
Diffstat (limited to 'lldb/test/python_api/frame')
-rw-r--r--lldb/test/python_api/frame/TestFrames.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/lldb/test/python_api/frame/TestFrames.py b/lldb/test/python_api/frame/TestFrames.py
index e9b1ed199e8..5872e63f270 100644
--- a/lldb/test/python_api/frame/TestFrames.py
+++ b/lldb/test/python_api/frame/TestFrames.py
@@ -77,7 +77,7 @@ class FrameAPITestCase(TestBase):
for val in valList:
argList.append("(%s)%s=%s" % (val.GetTypeName(),
val.GetName(),
- val.GetValue(frame)))
+ val.GetValue()))
print >> session, "%s(%s)" % (name, ", ".join(argList))
# Also check the generic pc & stack pointer. We can't test their absolute values,
@@ -85,10 +85,10 @@ class FrameAPITestCase(TestBase):
gpr_reg_set = lldbutil.get_GPRs(frame)
pc_value = gpr_reg_set.GetChildMemberWithName("pc")
self.assertTrue (pc_value, "We should have a valid PC.")
- self.assertTrue (int(pc_value.GetValue(frame), 0) == frame.GetPC(), "PC gotten as a value should equal frame's GetPC")
+ self.assertTrue (int(pc_value.GetValue(), 0) == frame.GetPC(), "PC gotten as a value should equal frame's GetPC")
sp_value = gpr_reg_set.GetChildMemberWithName("sp")
self.assertTrue (sp_value, "We should have a valid Stack Pointer.")
- self.assertTrue (int(sp_value.GetValue(frame), 0) == frame.GetSP(), "SP gotten as a value should equal frame's GetSP")
+ self.assertTrue (int(sp_value.GetValue(), 0) == frame.GetSP(), "SP gotten as a value should equal frame's GetSP")
print >> session, "---"
process.Continue()
OpenPOWER on IntegriCloud