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_X86_H |
10 | #define LLDB_SOURCE_PLUGINS_PROCESS_UTILITY_REGISTERCONTEXTLINUX_X86_H |
11 | |
12 | #include "RegisterInfoInterface.h" |
13 | |
14 | namespace lldb_private { |
15 | |
16 | class RegisterContextLinux_x86 : public RegisterInfoInterface { |
17 | public: |
18 | RegisterContextLinux_x86(const ArchSpec &target_arch, |
19 | RegisterInfo orig_ax_info) |
20 | : RegisterInfoInterface(target_arch), m_orig_ax_info(orig_ax_info) {} |
21 | |
22 | const RegisterInfo &GetOrigAxInfo() const { return m_orig_ax_info; } |
23 | |
24 | private: |
25 | lldb_private::RegisterInfo m_orig_ax_info; |
26 | }; |
27 | |
28 | } // namespace lldb_private |
29 | |
30 | #endif |
31 | |