diff options
author | Jonas Devlieghere <jonas@devlieghere.com> | 2022-03-11 10:50:10 -0800 |
---|---|---|
committer | Jonas Devlieghere <jonas@devlieghere.com> | 2022-03-11 10:58:04 -0800 |
commit | 68099b1d5c2c99ff79e56a9e183f1601835ea244 (patch) | |
tree | 7884661ac4a4c5448dc69843edbac1c604675882 /lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp | |
parent | 9b7b21d2f7cfd6784fdb7adbc022b200a60105fa (diff) | |
download | llvm-68099b1d5c2c99ff79e56a9e183f1601835ea244.zip llvm-68099b1d5c2c99ff79e56a9e183f1601835ea244.tar.gz llvm-68099b1d5c2c99ff79e56a9e183f1601835ea244.tar.bz2 |
[lldb] Add a getter for the process' system architecture
This patch adds a getter for the process' system architecture. I went
with Process::GetSystemArchitecture to match
Platform::GetSystemArchitecture.
Differential revision: https://reviews.llvm.org/D121443
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp')
-rw-r--r-- | lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp index 57be71e..d8dc229 100644 --- a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp +++ b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp @@ -208,6 +208,10 @@ std::chrono::seconds ProcessGDBRemote::GetPacketTimeout() { return std::chrono::seconds(GetGlobalPluginProperties().GetPacketTimeout()); } +ArchSpec ProcessGDBRemote::GetSystemArchitecture() { + return m_gdb_comm.GetHostArchitecture(); +} + bool ProcessGDBRemote::CanDebug(lldb::TargetSP target_sp, bool plugin_specified_by_name) { if (plugin_specified_by_name) |