diff options
author | Jim Ingham <jingham@apple.com> | 2015-11-05 22:33:17 +0000 |
---|---|---|
committer | Jim Ingham <jingham@apple.com> | 2015-11-05 22:33:17 +0000 |
commit | 13c30d2f7d6802683e667a542c80e51eb6d7dcca (patch) | |
tree | b22e5adab51a86eb41607ec8d79bb9ec6b9f558b /lldb/source/Target/Platform.cpp | |
parent | ea26041bbbf9bf8318e2fdceeaf12b95cf8b56e7 (diff) | |
download | bcm5719-llvm-13c30d2f7d6802683e667a542c80e51eb6d7dcca.tar.gz bcm5719-llvm-13c30d2f7d6802683e667a542c80e51eb6d7dcca.zip |
Let the process help figure out the Host OS if nobody else
can figure it out.
llvm-svn: 252224
Diffstat (limited to 'lldb/source/Target/Platform.cpp')
-rw-r--r-- | lldb/source/Target/Platform.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lldb/source/Target/Platform.cpp b/lldb/source/Target/Platform.cpp index 33446a9fb3a..aebe9192fbe 100644 --- a/lldb/source/Target/Platform.cpp +++ b/lldb/source/Target/Platform.cpp @@ -528,7 +528,8 @@ Platform::GetStatus (Stream &strm) bool Platform::GetOSVersion (uint32_t &major, uint32_t &minor, - uint32_t &update) + uint32_t &update, + Process *process) { Mutex::Locker locker (m_mutex); @@ -579,6 +580,12 @@ Platform::GetOSVersion (uint32_t &major, minor = m_minor_os_version; update = m_update_os_version; } + else if (process) + { + // Check with the process in case it can answer the question if + // a process was provided + return process->GetHostOSVersion(major, minor, update); + } return success; } |