diff options
author | Adrian Prantl <aprantl@apple.com> | 2022-03-23 14:06:18 -0700 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2022-03-23 14:22:26 -0700 |
commit | 7504dd5e00f514628614db8ee07514c73220e597 (patch) | |
tree | ca50c5e81f8d01b1b2234538aaf2a1f3d7a433bb /lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp | |
parent | 3f97016857b0305294f3a55ea220884fb50ce033 (diff) | |
download | llvm-7504dd5e00f514628614db8ee07514c73220e597.zip llvm-7504dd5e00f514628614db8ee07514c73220e597.tar.gz llvm-7504dd5e00f514628614db8ee07514c73220e597.tar.bz2 |
Expose GetAddressingBits() in the Process API.
This is needed by the Swift Plugin.
See also https://github.com/apple/llvm-project/pull/4110.
Differential Revision: https://reviews.llvm.org/D122347
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 2e652e1..1274732 100644 --- a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp +++ b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp @@ -212,6 +212,10 @@ ArchSpec ProcessGDBRemote::GetSystemArchitecture() { return m_gdb_comm.GetHostArchitecture(); } +llvm::Optional<uint32_t> ProcessGDBRemote::GetAddressingBits() { + return m_gdb_comm.GetAddressingBits(); +} + bool ProcessGDBRemote::CanDebug(lldb::TargetSP target_sp, bool plugin_specified_by_name) { if (plugin_specified_by_name) |