================
@@ -189,6 +190,10 @@ static bool FillStackFrames(DAP &dap, lldb::SBThread
&thread,
llvm::Expected<protocol::StackTraceResponseBody>
StackTraceRequestHandler::Run(const protocol::StackTraceArguments &args) const
{
+ const lldb::StateType process_state = dap.target.GetProcess().GetState();
+ if (!lldb::SBDebugger::StateIsStoppedState(process_state))
+ return llvm::make_error<NotStoppedError>();
----------------
JDevlieghere wrote:
Would it be worthwhile to have a `DAP::ProcessIsStopped` to avoid the
repetition?
https://github.com/llvm/llvm-project/pull/179202
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits