diff options
author | Eugene Leviant <evgeny.leviant@gmail.com> | 2016-01-29 12:17:09 +0000 |
---|---|---|
committer | Eugene Leviant <evgeny.leviant@gmail.com> | 2016-01-29 12:17:09 +0000 |
commit | ec4d04e507a7e2dec5f5b8739a6d4feaea0bc2f4 (patch) | |
tree | d45c6a44a596f4cdf9e83a4a8128504e1bc99ef3 /lldb/packages/Python/lldbsuite/test/tools/lldb-mi/stack/TestMiStack.py | |
parent | 941ca06688539eba1241ad1500fa80890cefdaa7 (diff) | |
download | bcm5719-llvm-ec4d04e507a7e2dec5f5b8739a6d4feaea0bc2f4.tar.gz bcm5719-llvm-ec4d04e507a7e2dec5f5b8739a6d4feaea0bc2f4.zip |
Fix crash in lldb-mi when stack variable name is nullptr. This always happens when execution stops in try scope with unnamed catch clause
llvm-svn: 259189
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/tools/lldb-mi/stack/TestMiStack.py')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/tools/lldb-mi/stack/TestMiStack.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/tools/lldb-mi/stack/TestMiStack.py b/lldb/packages/Python/lldbsuite/test/tools/lldb-mi/stack/TestMiStack.py index 14dab38bb33..1ae728ef804 100644 --- a/lldb/packages/Python/lldbsuite/test/tools/lldb-mi/stack/TestMiStack.py +++ b/lldb/packages/Python/lldbsuite/test/tools/lldb-mi/stack/TestMiStack.py @@ -199,7 +199,20 @@ class MiStackTestCase(lldbmi_testcase.MiTestCaseBase): self.expect("\^done,locals=\[{name=\"test_str\",type=\"const char \*\",value=\".*?Rakaposhi.*?\"},{name=\"var_e\",type=\"int\",value=\"24\"},{name=\"ptr\",type=\"int \*\",value=\".*?\"}\]") self.runCmd("-stack-list-locals --simple-values") self.expect("\^done,locals=\[{name=\"test_str\",type=\"const char \*\",value=\".*?Rakaposhi.*?\"},{name=\"var_e\",type=\"int\",value=\"24\"},{name=\"ptr\",type=\"int \*\",value=\".*?\"}\]") + + # Test -stack-list-locals in a function with catch clause, + # having unnamed parameter + # Run to BP_catch_unnamed + line = line_number('main.cpp', '// BP_catch_unnamed') + self.runCmd("-break-insert --file main.cpp:%d" % line) + self.expect("\^done,bkpt={number=\"6\"") + self.runCmd("-exec-continue") + self.expect("\^running") + self.expect("\*stopped,reason=\"breakpoint-hit\"") + # Test -stack-list-locals: use --no-values + self.runCmd("-stack-list-locals --no-values") + self.expect("\^done,locals=\[name=\"i\",name=\"j\"\]") @skipIfWindows #llvm.org/pr24452: Get lldb-mi tests working on Windows @skipIfFreeBSD # llvm.org/pr22411: Failure presumably due to known thread races def test_lldbmi_stack_list_variables(self): |