1 //===-- RegisterContextLinux_mips.h ---------------------------*- C++ -*-===// 2 // 3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4 // See https://llvm.org/LICENSE.txt for license information. 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 // 7 //===----------------------------------------------------------------------===// 8 9 #ifndef LLDB_SOURCE_PLUGINS_PROCESS_UTILITY_REGISTERCONTEXTLINUX_MIPS_H 10 #define LLDB_SOURCE_PLUGINS_PROCESS_UTILITY_REGISTERCONTEXTLINUX_MIPS_H 11 12 #include "RegisterInfoInterface.h" 13 #include "lldb/lldb-private.h" 14 15 class RegisterContextLinux_mips : public lldb_private::RegisterInfoInterface { 16 public: 17 RegisterContextLinux_mips(const lldb_private::ArchSpec &target_arch, 18 bool msa_present = true); 19 20 size_t GetGPRSize() const override; 21 22 const lldb_private::RegisterInfo *GetRegisterInfo() const override; 23 24 const lldb_private::RegisterSet *GetRegisterSet(size_t set) const; 25 26 size_t GetRegisterSetCount() const; 27 28 uint32_t GetRegisterCount() const override; 29 30 uint32_t GetUserRegisterCount() const override; 31 32 private: 33 uint32_t m_user_register_count; 34 }; 35 36 #endif 37