summaryrefslogtreecommitdiffstats
path: root/lldb/test/python_api
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2011-03-31 23:01:21 +0000
committerJim Ingham <jingham@apple.com>2011-03-31 23:01:21 +0000
commit8d543de400b395c9adfab29c34b1e133c752d64c (patch)
tree2961806d4dc17aeb525b1d8f470eb8c51534813f /lldb/test/python_api
parentd74b72b8a9cf76fae395110218cf06f8ae57c04f (diff)
downloadbcm5719-llvm-8d543de400b395c9adfab29c34b1e133c752d64c.tar.gz
bcm5719-llvm-8d543de400b395c9adfab29c34b1e133c752d64c.zip
Remove unneeded ExecutionContextScope variables.
llvm-svn: 128685
Diffstat (limited to 'lldb/test/python_api')
-rw-r--r--lldb/test/python_api/frame/TestFrames.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/lldb/test/python_api/frame/TestFrames.py b/lldb/test/python_api/frame/TestFrames.py
index 908a04919b8..ac9cdac63f6 100644
--- a/lldb/test/python_api/frame/TestFrames.py
+++ b/lldb/test/python_api/frame/TestFrames.py
@@ -87,6 +87,18 @@ class FrameAPITestCase(TestBase):
val.GetName(),
val.GetValue(frame)))
print >> session, "%s(%s)" % (name, ", ".join(argList))
+
+ # Also check the generic pc & stack pointer. We can't test their absolute values,
+ # but they should be valid.
+ # It is kind of goofy that the register set is a value, and then we just have
+ # to magically know that element 0 is the GPR set...
+ gpr_reg_set = frame.GetRegisters().GetValueAtIndex(0)
+ pc_value = gpr_reg_set.GetChildMemberWithName("pc")
+ self.assertTrue (pc_value.IsValid(), "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")
+ sp_value = gpr_reg_set.GetChildMemberWithName("sp")
+ self.assertTrue (sp_value.IsValid(), "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")
print >> session, "---"
process.Continue()
OpenPOWER on IntegriCloud