diff options
author | Tamas Berghammer <tberghammer@google.com> | 2015-03-13 11:16:12 +0000 |
---|---|---|
committer | Tamas Berghammer <tberghammer@google.com> | 2015-03-13 11:16:12 +0000 |
commit | a109421936d10840cc24a34dabd0d99c8aadf918 (patch) | |
tree | 62eada9f8cce8412d09fb8c3468a361cff16914f /lldb/source/Host/linux/Host.cpp | |
parent | dad4db713de4e2d7e783cde6fc3191624c7bac29 (diff) | |
download | bcm5719-llvm-a109421936d10840cc24a34dabd0d99c8aadf918.tar.gz bcm5719-llvm-a109421936d10840cc24a34dabd0d99c8aadf918.zip |
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
Diffstat (limited to 'lldb/source/Host/linux/Host.cpp')
-rw-r--r-- | lldb/source/Host/linux/Host.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lldb/source/Host/linux/Host.cpp b/lldb/source/Host/linux/Host.cpp index 520d0bdee93..8ad2c2953b3 100644 --- a/lldb/source/Host/linux/Host.cpp +++ b/lldb/source/Host/linux/Host.cpp @@ -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; |