[Lldb-commits] [lldb] [lldb-dap] Refactoring lldb-dap port listening mode to allow multiple connections. (PR #116392)
Adrian Vogelsgesang via lldb-commits
lldb-commits at lists.llvm.org
Fri Nov 15 10:04:48 PST 2024
================
@@ -140,13 +137,16 @@ struct DAP {
llvm::StringRef debug_adaptor_path;
InputStream input;
OutputStream output;
+ lldb::SBFile in;
+ lldb::SBFile out;
+ lldb::SBFile err;
lldb::SBDebugger debugger;
lldb::SBTarget target;
Variables variables;
lldb::SBBroadcaster broadcaster;
std::thread event_thread;
std::thread progress_event_thread;
- std::unique_ptr<std::ofstream> log;
+ std::shared_ptr<std::ofstream> log;
----------------
vogelsgesang wrote:
should this be a `shared_ptr`? Afaict a reference should be sufficient, given that the log file is global and will always outlive the `DAP` instances
https://github.com/llvm/llvm-project/pull/116392
More information about the lldb-commits
mailing list