Fix missing data in GetProcessInfo on linux

Fill in the missing part of the architecture in GetProcessInfo from the
HostArchitecture (e.g. Environment).

Differential revision: http://reviews.llvm.org/D8292

llvm-svn: 232157
This commit is contained in:
Tamas Berghammer 2015-03-13 11:16:12 +00:00
parent dad4db713d
commit a109421936
1 changed files with 2 additions and 0 deletions

View File

@ -26,6 +26,7 @@
#include "lldb/Target/Process.h"
#include "lldb/Host/Host.h"
#include "lldb/Host/HostInfo.h"
#ifdef __ANDROID_NDK__
#include "lldb/Host/android/Android.h"
#endif
@ -322,6 +323,7 @@ GetProcessAndStatInfo (lldb::pid_t pid, ProcessInstanceInfo &process_info, Proce
process_info.SetProcessID(pid);
process_info.GetExecutableFile().SetFile(exe_path, false);
process_info.GetArchitecture().MergeFrom(HostInfo::GetArchitecture());
lldb::DataBufferSP buf_sp;