1 //===-- RegisterContextLinux_i386.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_I386_H 10 #define LLDB_SOURCE_PLUGINS_PROCESS_UTILITY_REGISTERCONTEXTLINUX_I386_H 11 12 #include "RegisterInfoInterface.h" 13 14 class RegisterContextLinux_i386 : public lldb_private::RegisterInfoInterface { 15 public: 16 RegisterContextLinux_i386(const lldb_private::ArchSpec &target_arch); 17 18 static size_t GetGPRSizeStatic(); 19 size_t GetGPRSize() const override { return GetGPRSizeStatic(); } 20 21 const lldb_private::RegisterInfo *GetRegisterInfo() const override; 22 23 uint32_t GetRegisterCount() const override; 24 25 uint32_t GetUserRegisterCount() const override; 26 27 const std::vector<lldb_private::RegisterInfo> * 28 GetDynamicRegisterInfoP() const override; 29 30 private: 31 std::vector<lldb_private::RegisterInfo> d_register_infos; 32 }; 33 34 #endif 35