[Lldb-commits] [PATCH] D108335: [lldb] Move UnixSignals subclasses to lldbTarget

Alex Langford via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Wed Aug 18 15:11:03 PDT 2021


bulbazord created this revision.
bulbazord added reviewers: LLDB, clayborg, jingham, teemperor, JDevlieghere.
Herald added subscribers: atanasyan, jrtc27, mgorny, sdardis, emaste.
bulbazord requested review of this revision.
Herald added a project: LLDB.

I have created this change as a way to solicit feedback and foster
discussion.  My goal is to sever lldbTarget's dependence on
lldbPluginProcessUtility as a part of my larger goal of more cleanly
setting boundaries between lldb's core libraries and lldb's plugin
libraries.

For the purposes of concretely demonstrating what severing the
dependence would look like, I made the easiest change possible (moving
files). I don't think this is the right kind of change because
lldbTarget should ideally be platform-independent. I considered turning
UnixSignals into a Plugin, but to me this felt like overkill. I think
the best change may be somewhere else (possibly creating a new non-plugin
library?) but I'm not sure what that should look like.

Feedback is appreciated.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D108335

Files:
  lldb/include/lldb/Target/FreeBSDSignals.h
  lldb/include/lldb/Target/GDBRemoteSignals.h
  lldb/include/lldb/Target/LinuxSignals.h
  lldb/include/lldb/Target/MipsLinuxSignals.h
  lldb/include/lldb/Target/NetBSDSignals.h
  lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/CMakeLists.txt
  lldb/source/Plugins/Platform/gdb-server/PlatformRemoteGDBServer.cpp
  lldb/source/Plugins/Platform/gdb-server/PlatformRemoteGDBServer.h
  lldb/source/Plugins/Process/Utility/CMakeLists.txt
  lldb/source/Plugins/Process/Utility/FreeBSDSignals.cpp
  lldb/source/Plugins/Process/Utility/FreeBSDSignals.h
  lldb/source/Plugins/Process/Utility/GDBRemoteSignals.cpp
  lldb/source/Plugins/Process/Utility/GDBRemoteSignals.h
  lldb/source/Plugins/Process/Utility/LinuxSignals.cpp
  lldb/source/Plugins/Process/Utility/LinuxSignals.h
  lldb/source/Plugins/Process/Utility/MipsLinuxSignals.cpp
  lldb/source/Plugins/Process/Utility/MipsLinuxSignals.h
  lldb/source/Plugins/Process/Utility/NetBSDSignals.cpp
  lldb/source/Plugins/Process/Utility/NetBSDSignals.h
  lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
  lldb/source/Target/CMakeLists.txt
  lldb/source/Target/FreeBSDSignals.cpp
  lldb/source/Target/GDBRemoteSignals.cpp
  lldb/source/Target/LinuxSignals.cpp
  lldb/source/Target/MipsLinuxSignals.cpp
  lldb/source/Target/NetBSDSignals.cpp
  lldb/source/Target/UnixSignals.cpp
  lldb/unittests/Process/gdb-remote/GDBRemoteClientBaseTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D108335.367337.patch
Type: text/x-patch
Size: 13240 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20210818/6e1e6d0e/attachment-0001.bin>


More information about the lldb-commits mailing list