summaryrefslogtreecommitdiffstats
path: root/lldb/source/Host/linux/Host.cpp
diff options
context:
space:
mode:
authorTamas Berghammer <tberghammer@google.com>2015-03-13 11:16:12 +0000
committerTamas Berghammer <tberghammer@google.com>2015-03-13 11:16:12 +0000
commita109421936d10840cc24a34dabd0d99c8aadf918 (patch)
tree62eada9f8cce8412d09fb8c3468a361cff16914f /lldb/source/Host/linux/Host.cpp
parentdad4db713de4e2d7e783cde6fc3191624c7bac29 (diff)
downloadbcm5719-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.cpp2
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;
OpenPOWER on IntegriCloud