summaryrefslogtreecommitdiffstats
path: root/lldb/source/Host/linux
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2019-03-04 21:51:03 +0000
committerZachary Turner <zturner@google.com>2019-03-04 21:51:03 +0000
commit805e71060edac61fd8b583f8c62bd2df36d04076 (patch)
tree4e7dc318e7802dd86afddffff2ac9d1180a0def2 /lldb/source/Host/linux
parent0ca4f84f2f550f790d1868df8f6a7dfe8164e171 (diff)
downloadbcm5719-llvm-805e71060edac61fd8b583f8c62bd2df36d04076.tar.gz
bcm5719-llvm-805e71060edac61fd8b583f8c62bd2df36d04076.zip
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
Diffstat (limited to 'lldb/source/Host/linux')
-rw-r--r--lldb/source/Host/linux/Host.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/lldb/source/Host/linux/Host.cpp b/lldb/source/Host/linux/Host.cpp
index e67558df0ad..f94abd03a6f 100644
--- a/lldb/source/Host/linux/Host.cpp
+++ b/lldb/source/Host/linux/Host.cpp
@@ -19,7 +19,6 @@
#include "llvm/Object/ELF.h"
#include "llvm/Support/ScopedPrinter.h"
-#include "lldb/Target/Process.h"
#include "lldb/Utility/Log.h"
#include "lldb/Utility/Status.h"
@@ -44,6 +43,10 @@ enum class ProcessState {
};
}
+namespace lldb_private {
+class ProcessLaunchInfo;
+}
+
static bool GetStatusInfo(::pid_t Pid, ProcessInstanceInfo &ProcessInfo,
ProcessState &State, ::pid_t &TracerPid) {
auto BufferOrError = getProcFile(Pid, "status");
OpenPOWER on IntegriCloud