[lldb] [llvm] [lldb] Move OS-specific UnixSignals subclasses from Plugins to Target (PR #229106)
Lexi Bromfield via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 5 08:52:50 PDT 2026
lexi-nadia wrote:
> I tried to address this in #221579, but @jimingham said:
>
> > I'm not super-fond of this change. UnixSignals.cpp is already an awkward fit for source/Target. It was justified because it is useful to be able to set signal handling in the dummy target (i.e. in your .lldbinit) before you could know what process plugin you are actually going to be using. That doesn't justify moving all the plugin specific files here. And that general practice could end up making source/Target and include/lldb/Target cluttered up with so many plugin specific files that it gets hard to see the structure.
>
> We can open the discussion again, of course. I added @jimingham as reviewer.
Ah, my apologies, I hadn't seen that before. Thanks for letting me know!
The challenge here is that it seems like every approach to fixing the circular dependency has some issues. For example, see https://reviews.llvm.org/D146263, which (AIUI) was ultimately reverted because it significantly increased the size of lldb-server.
If there's a better solution, I'm happy to implement it. But if not... it seems like it would still be good to address the circular dependency and the "wrong-way" dependency (core depending on a plugin), no?
https://github.com/llvm/llvm-project/pull/229106
More information about the llvm-commits
mailing list