From 961fbf21c644cebf3315f12663e2db25bbf764c4 Mon Sep 17 00:00:00 2001 From: Kuba Mracek Date: Fri, 4 Jan 2019 00:25:08 +0000 Subject: [lldb] Fix ObjCExceptionRecognizedStackFrame to populate the list of recognized arguments Differential Revision: https://reviews.llvm.org/D56027 llvm-svn: 350376 --- .../lldbsuite/test/lang/objc/exceptions/TestObjCExceptions.py | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'lldb/packages/Python/lldbsuite/test/lang/objc/exceptions/TestObjCExceptions.py') 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, -- cgit v1.2.3