summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2015-11-05 22:33:17 +0000
committerJim Ingham <jingham@apple.com>2015-11-05 22:33:17 +0000
commit13c30d2f7d6802683e667a542c80e51eb6d7dcca (patch)
treeb22e5adab51a86eb41607ec8d79bb9ec6b9f558b /lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
parentea26041bbbf9bf8318e2fdceeaf12b95cf8b56e7 (diff)
downloadbcm5719-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/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp')
-rw-r--r--lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
index a6e15d21063..4a321879e5b 100644
--- a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
+++ b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
@@ -4296,6 +4296,18 @@ ProcessGDBRemote::GetModuleSpec(const FileSpec& module_file_spec,
return true;
}
+bool
+ProcessGDBRemote::GetHostOSVersion(uint32_t &major,
+ uint32_t &minor,
+ uint32_t &update)
+{
+ if (m_gdb_comm.GetOSVersion(major, minor, update))
+ return true;
+ // We failed to get the host OS version, defer to the base
+ // implementation to correctly invalidate the arguments.
+ return Process::GetHostOSVersion(major, minor, update);
+}
+
namespace {
typedef std::vector<std::string> stringVec;
OpenPOWER on IntegriCloud