aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2022-03-11 10:50:10 -0800
committerJonas Devlieghere <jonas@devlieghere.com>2022-03-11 10:58:04 -0800
commit68099b1d5c2c99ff79e56a9e183f1601835ea244 (patch)
tree7884661ac4a4c5448dc69843edbac1c604675882 /lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
parent9b7b21d2f7cfd6784fdb7adbc022b200a60105fa (diff)
downloadllvm-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.cpp4
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)