Move ProcessInfo from Host to Utility.
authorZachary Turner <zturner@google.com>
Mon, 4 Mar 2019 21:51:03 +0000 (21:51 +0000)
committerZachary Turner <zturner@google.com>
Mon, 4 Mar 2019 21:51:03 +0000 (21:51 +0000)
commit805e71060edac61fd8b583f8c62bd2df36d04076
tree4e7dc318e7802dd86afddffff2ac9d1180a0def2
parent0ca4f84f2f550f790d1868df8f6a7dfe8164e171
Move ProcessInfo from Host to Utility.

There are set of classes in Target that describe the parameters of a
process - e.g. it's PID, name, user id, and similar. However, since it
is a bare description of a process and contains no actual functionality,
there's nothing specifically that makes this appropriate for being in
Target -- it could just as well be describing a process on the host, or
some hypothetical virtual process that doesn't even exist.

To cement this, I'm moving these classes to Utility. It's possible that
we can find a better place for it in the future, but as it is neither
Host specific nor Target specific, Utility seems like the most appropriate
place for the time being.

After this there is only 2 remaining references to Target from Host,
which I'll address in a followup.

Differential Revision: https://reviews.llvm.org/D58842

llvm-svn: 355342
33 files changed:
lldb/include/lldb/Host/Host.h
lldb/include/lldb/Host/ProcessInfo.h [deleted file]
lldb/include/lldb/Host/ProcessLaunchInfo.h
lldb/include/lldb/Host/posix/HostInfoPosix.h
lldb/include/lldb/Target/Platform.h
lldb/include/lldb/Target/Process.h
lldb/include/lldb/Utility/ProcessInfo.h [new file with mode: 0644]
lldb/include/lldb/module.modulemap
lldb/source/API/SBProcess.cpp
lldb/source/API/SBProcessInfo.cpp
lldb/source/API/SBTarget.cpp
lldb/source/Host/CMakeLists.txt
lldb/source/Host/common/ProcessInfo.cpp [deleted file]
lldb/source/Host/freebsd/Host.cpp
lldb/source/Host/linux/Host.cpp
lldb/source/Host/macosx/objcxx/Host.mm
lldb/source/Host/netbsd/Host.cpp
lldb/source/Host/openbsd/Host.cpp
lldb/source/Host/posix/HostInfoPosix.cpp
lldb/source/Host/windows/Host.cpp
lldb/source/Plugins/DynamicLoader/POSIX-DYLD/DynamicLoaderPOSIXDYLD.cpp
lldb/source/Plugins/Platform/MacOSX/PlatformAppleTVSimulator.cpp
lldb/source/Plugins/Platform/MacOSX/PlatformAppleWatchSimulator.cpp
lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp
lldb/source/Plugins/Platform/MacOSX/PlatformiOSSimulator.cpp
lldb/source/Plugins/Platform/gdb-server/PlatformRemoteGDBServer.cpp
lldb/source/Target/Process.cpp
lldb/source/Utility/CMakeLists.txt
lldb/source/Utility/ProcessInfo.cpp [new file with mode: 0644]
lldb/unittests/Host/CMakeLists.txt
lldb/unittests/Host/ProcessInfoTest.cpp [deleted file]
lldb/unittests/Utility/CMakeLists.txt
lldb/unittests/Utility/ProcessInfoTest.cpp [new file with mode: 0644]