[Lldb-commits] [lldb] [lldb][Windows] Register the shadow listener in PlatformWindows (PR #227277)
David Spickett via lldb-commits
lldb-commits at lists.llvm.org
Tue Sep 29 05:58:11 PDT 2026
================
@@ -678,9 +679,11 @@ lldb::ProcessSP PlatformWindows::Attach(ProcessAttachInfo &attach_info,
target->CreateProcess(attach_info.GetListenerForProcess(debugger),
attach_info.GetProcessPluginName(), nullptr, false);
- process_sp->HijackProcessEvents(attach_info.GetHijackListener());
- if (process_sp)
+ if (process_sp) {
+ process_sp->HijackProcessEvents(attach_info.GetHijackListener());
----------------
DavidSpickett wrote:
Some of them do:
```
ListenerSP listener_sp = attach_info.GetHijackListener();
if (listener_sp)
process_sp->HijackProcessEvents(listener_sp);
```
But I don't see why. Some of them do some of them don't.
https://github.com/llvm/llvm-project/pull/227277
More information about the lldb-commits
mailing list