[Lldb-commits] [lldb] [lldb] Adding file and pipe support to lldb_private::MainLoopWindows. (PR #145621)
Pavel Labath via lldb-commits
lldb-commits at lists.llvm.org
Fri Jun 27 02:07:01 PDT 2025
================
@@ -31,20 +31,27 @@ class MainLoopWindows : public MainLoopBase {
Status Run() override;
+ struct FdInfo {
+ FdInfo(intptr_t event, Callback callback)
+ : event(event), callback(callback) {}
+ virtual ~FdInfo() {}
+ virtual void WillPoll() {}
+ virtual void DidPoll() {}
+ virtual void Disarm() {}
+ intptr_t event;
+ Callback callback;
----------------
labath wrote:
A struct with virtual methods reminds me of lldb-dap, in a bad way. Let's put these behind an accessor.
https://github.com/llvm/llvm-project/pull/145621
More information about the lldb-commits
mailing list