This is needed by the Swift Plugin.
See also https://github.com/apple/llvm-project/pull/4110.
Differential Revision: https://reviews.llvm.org/
D122347
/// Get the system architecture for this process.
virtual ArchSpec GetSystemArchitecture() { return {}; }
+ /// Return the number of bits in a vmaddr that are used by valid addresses.
+ virtual llvm::Optional<uint32_t> GetAddressingBits() { return {}; }
+
/// Get the system runtime plug-in for this process.
///
/// \return
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)
ArchSpec GetSystemArchitecture() override;
+ llvm::Optional<uint32_t> GetAddressingBits() override;
+
// Check if a given Process
bool CanDebug(lldb::TargetSP target_sp,
bool plugin_specified_by_name) override;