summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/lang/objc/exceptions/TestObjCExceptions.py
diff options
context:
space:
mode:
authorKuba Mracek <mracek@apple.com>2019-01-04 00:25:08 +0000
committerKuba Mracek <mracek@apple.com>2019-01-04 00:25:08 +0000
commit961fbf21c644cebf3315f12663e2db25bbf764c4 (patch)
tree6c6f715e8c50105740faec392f2ff4fb8ccfe0dc /lldb/packages/Python/lldbsuite/test/lang/objc/exceptions/TestObjCExceptions.py
parent19d1f2092708ec504cfb14110440a0aaa4cfde79 (diff)
downloadbcm5719-llvm-961fbf21c644cebf3315f12663e2db25bbf764c4.tar.gz
bcm5719-llvm-961fbf21c644cebf3315f12663e2db25bbf764c4.zip
[lldb] Fix ObjCExceptionRecognizedStackFrame to populate the list of recognized arguments
Differential Revision: https://reviews.llvm.org/D56027 llvm-svn: 350376
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/lang/objc/exceptions/TestObjCExceptions.py')
-rw-r--r--lldb/packages/Python/lldbsuite/test/lang/objc/exceptions/TestObjCExceptions.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/lang/objc/exceptions/TestObjCExceptions.py b/lldb/packages/Python/lldbsuite/test/lang/objc/exceptions/TestObjCExceptions.py
index b5511549fd5..92b32504cf2 100644
--- a/lldb/packages/Python/lldbsuite/test/lang/objc/exceptions/TestObjCExceptions.py
+++ b/lldb/packages/Python/lldbsuite/test/lang/objc/exceptions/TestObjCExceptions.py
@@ -34,6 +34,17 @@ class ObjCExceptionsTestCase(TestBase):
'name: "ThrownException" - reason: "SomeReason"',
])
+ target = self.dbg.GetSelectedTarget()
+ thread = target.GetProcess().GetSelectedThread()
+ frame = thread.GetSelectedFrame()
+
+ opts = lldb.SBVariablesOptions()
+ opts.SetIncludeRecognizedArguments(True)
+ variables = frame.GetVariables(opts)
+
+ self.assertEqual(variables.GetSize(), 1)
+ self.assertEqual(variables.GetValueAtIndex(0).name, "exception")
+
lldbutil.run_to_source_breakpoint(self, "// Set break point at this line.", lldb.SBFileSpec("main.mm"), launch_info=launch_info)
self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
OpenPOWER on IntegriCloud