Don't try to create Expressions when the process is running.
authorJim Ingham <jingham@apple.com>
Wed, 9 Nov 2022 18:03:30 +0000 (10:03 -0800)
committerJim Ingham <jingham@apple.com>
Wed, 9 Nov 2022 18:07:09 +0000 (10:07 -0800)
commitb565e7f0c4cb1768f6c43499aed95adb8cc4f04a
tree0acd259805cb773a1c07d9cf34ad7f43dc8a449c
parent453c2879cb2ad6c46267ef8f39f0274aed69d9ee
Don't try to create Expressions when the process is running.

We generally prohibit this at a higher level - for instance requiring
the process to be stopped for "expr".  But when we trigger an expression
for internal purposes (e.g. to fetch types from the ObjC runtime) we weren't
checking the process state.  Now we explicitly check this at the very start
of the job so we don't get into bad states.

Differential Revision: https://reviews.llvm.org/D137684
lldb/source/Expression/FunctionCaller.cpp
lldb/source/Expression/UserExpression.cpp
lldb/source/Expression/UtilityFunction.cpp
lldb/source/Plugins/ExpressionParser/Clang/ClangUtilityFunction.cpp
lldb/source/Target/Process.cpp