[Lldb-commits] [lldb] [lldb-dap] Add an RAII helper for synchronous mode (NFC) (PR #137900)
John Harrison via lldb-commits
lldb-commits at lists.llvm.org
Tue Apr 29 21:37:27 PDT 2025
================
@@ -235,4 +235,15 @@ std::string GetStringValue(const lldb::SBStructuredData &data) {
return str;
}
+ScopeSyncMode::ScopeSyncMode(lldb::SBDebugger &debugger)
+ : m_debugger(debugger) {
+ assert(m_debugger.GetAsync() && "Debugger not in asynchronous mode!");
----------------
ashgti wrote:
I think it’s okay for scripts to have a level of control over the debugger behavior since they’re pretty helpful for extending the debugger, but I agree that if we have some assumptions about the debugger state it’s good to make sure they’re well known.
https://github.com/llvm/llvm-project/pull/137900
More information about the lldb-commits
mailing list