diff options
author | Tamas Berghammer <tberghammer@google.com> | 2015-03-31 09:52:22 +0000 |
---|---|---|
committer | Tamas Berghammer <tberghammer@google.com> | 2015-03-31 09:52:22 +0000 |
commit | db264a6d09b04f6794e786078bf727c1c10c798a (patch) | |
tree | 9da2cc27520248bda09229b65a3c1b5b8fc68964 /lldb/source/Host | |
parent | 96d1779e23fad278e9f48ebb0ae6450e7395d6e7 (diff) | |
download | bcm5719-llvm-db264a6d09b04f6794e786078bf727c1c10c798a.tar.gz bcm5719-llvm-db264a6d09b04f6794e786078bf727c1c10c798a.zip |
Move several plugin to its own namespace
Affected paths:
* Plugins/Platform/Android/*
* Plugins/Platform/Linux/*
* Plugins/Platform/gdb-server/*
* Plugins/Process/Linux/*
* Plugins/Process/gdb-remote/*
Differential revision: http://reviews.llvm.org/D8654
llvm-svn: 233679
Diffstat (limited to 'lldb/source/Host')
-rw-r--r-- | lldb/source/Host/linux/Host.cpp | 12 | ||||
-rw-r--r-- | lldb/source/Host/linux/HostThreadLinux.cpp | 2 |
2 files changed, 7 insertions, 7 deletions
diff --git a/lldb/source/Host/linux/Host.cpp b/lldb/source/Host/linux/Host.cpp index 8ad2c2953b3..98b08d0927f 100644 --- a/lldb/source/Host/linux/Host.cpp +++ b/lldb/source/Host/linux/Host.cpp @@ -64,7 +64,7 @@ static bool ReadProcPseudoFileStat (lldb::pid_t pid, ProcessStatInfo& stat_info) { // Read the /proc/$PID/stat file. - lldb::DataBufferSP buf_sp = ProcFileReader::ReadIntoDataBuffer (pid, "stat"); + lldb::DataBufferSP buf_sp = process_linux::ProcFileReader::ReadIntoDataBuffer (pid, "stat"); // The filename of the executable is stored in parenthesis right after the pid. We look for the closing // parenthesis for the filename and work from there in case the name has something funky like ')' in it. @@ -117,7 +117,7 @@ GetLinuxProcessUserAndGroup (lldb::pid_t pid, ProcessInstanceInfo &process_info, uint32_t eGid = UINT32_MAX; // Effective Group ID // Read the /proc/$PID/status file and parse the Uid:, Gid:, and TracerPid: fields. - lldb::DataBufferSP buf_sp = ProcFileReader::ReadIntoDataBuffer (pid, "status"); + lldb::DataBufferSP buf_sp = process_linux::ProcFileReader::ReadIntoDataBuffer (pid, "status"); static const char uid_token[] = "Uid:"; char *buf_uid = strstr ((char *)buf_sp->GetBytes(), uid_token); @@ -157,13 +157,13 @@ GetLinuxProcessUserAndGroup (lldb::pid_t pid, ProcessInstanceInfo &process_info, lldb::DataBufferSP Host::GetAuxvData(lldb_private::Process *process) { - return ProcFileReader::ReadIntoDataBuffer (process->GetID(), "auxv"); + return process_linux::ProcFileReader::ReadIntoDataBuffer (process->GetID(), "auxv"); } lldb::DataBufferSP Host::GetAuxvData (lldb::pid_t pid) { - return ProcFileReader::ReadIntoDataBuffer (pid, "auxv"); + return process_linux::ProcFileReader::ReadIntoDataBuffer (pid, "auxv"); } static bool @@ -328,7 +328,7 @@ GetProcessAndStatInfo (lldb::pid_t pid, ProcessInstanceInfo &process_info, Proce lldb::DataBufferSP buf_sp; // Get the process environment. - buf_sp = ProcFileReader::ReadIntoDataBuffer(pid, "environ"); + buf_sp = process_linux::ProcFileReader::ReadIntoDataBuffer(pid, "environ"); Args &info_env = process_info.GetEnvironmentEntries(); char *next_var = (char *)buf_sp->GetBytes(); char *end_buf = next_var + buf_sp->GetByteSize(); @@ -339,7 +339,7 @@ GetProcessAndStatInfo (lldb::pid_t pid, ProcessInstanceInfo &process_info, Proce } // Get the command line used to start the process. - buf_sp = ProcFileReader::ReadIntoDataBuffer(pid, "cmdline"); + buf_sp = process_linux::ProcFileReader::ReadIntoDataBuffer(pid, "cmdline"); // Grab Arg0 first, if there is one. char *cmd = (char *)buf_sp->GetBytes(); diff --git a/lldb/source/Host/linux/HostThreadLinux.cpp b/lldb/source/Host/linux/HostThreadLinux.cpp index 619bd245ab2..81512154cd5 100644 --- a/lldb/source/Host/linux/HostThreadLinux.cpp +++ b/lldb/source/Host/linux/HostThreadLinux.cpp @@ -37,7 +37,7 @@ void HostThreadLinux::GetName(lldb::thread_t thread, llvm::SmallVectorImpl<char> &name) { // Read /proc/$TID/comm file. - lldb::DataBufferSP buf_sp = ProcFileReader::ReadIntoDataBuffer(thread, "comm"); + lldb::DataBufferSP buf_sp = process_linux::ProcFileReader::ReadIntoDataBuffer(thread, "comm"); const char *comm_str = (const char *)buf_sp->GetBytes(); const char *cr_str = ::strchr(comm_str, '\n'); size_t length = cr_str ? (cr_str - comm_str) : strlen(comm_str); |