forked from OSchip/llvm-project
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:
parent
dad4db713d
commit
a109421936
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue