Don't access the process in expressions w/o checking that
authorJim Ingham <jingham@apple.com>
Thu, 3 Nov 2016 23:42:09 +0000 (23:42 +0000)
committerJim Ingham <jingham@apple.com>
Thu, 3 Nov 2016 23:42:09 +0000 (23:42 +0000)
commit225621596b3f48ea69a48f4e4a9f2566a4b1ed4d
tree0eee18f76f323ca66f190e743d3802d0bf6b0e63
parentffb75385c88465a6d50106625febeb9b659f37c4
Don't access the process in expressions w/o checking that
the process exists.

I also added some tests that crash before this fix, and work correctly after.

<rdar://problem/29083321>

llvm-svn: 285974
lldb/packages/Python/lldbsuite/test/expression_command/calculator_mode/TestCalculatorMode.py [new file with mode: 0644]
lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp