xref: /freebsd-src/contrib/llvm-project/lldb/source/Plugins/Process/Utility/RegisterContextLinux_x86.h (revision 06c3fb2749bda94cb5201f81ffdb8fa6c3161b2e)
1*06c3fb27SDimitry Andric //===-- RegisterContextLinux_i386.h -----------------------------*- C++ -*-===//
2*06c3fb27SDimitry Andric //
3*06c3fb27SDimitry Andric // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4*06c3fb27SDimitry Andric // See https://llvm.org/LICENSE.txt for license information.
5*06c3fb27SDimitry Andric // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6*06c3fb27SDimitry Andric //
7*06c3fb27SDimitry Andric //===----------------------------------------------------------------------===//
8*06c3fb27SDimitry Andric 
9*06c3fb27SDimitry Andric #ifndef LLDB_SOURCE_PLUGINS_PROCESS_UTILITY_REGISTERCONTEXTLINUX_X86_H
10*06c3fb27SDimitry Andric #define LLDB_SOURCE_PLUGINS_PROCESS_UTILITY_REGISTERCONTEXTLINUX_X86_H
11*06c3fb27SDimitry Andric 
12*06c3fb27SDimitry Andric #include "RegisterInfoInterface.h"
13*06c3fb27SDimitry Andric 
14*06c3fb27SDimitry Andric namespace lldb_private {
15*06c3fb27SDimitry Andric 
16*06c3fb27SDimitry Andric class RegisterContextLinux_x86 : public RegisterInfoInterface {
17*06c3fb27SDimitry Andric public:
RegisterContextLinux_x86(const ArchSpec & target_arch,RegisterInfo orig_ax_info)18*06c3fb27SDimitry Andric   RegisterContextLinux_x86(const ArchSpec &target_arch,
19*06c3fb27SDimitry Andric                            RegisterInfo orig_ax_info)
20*06c3fb27SDimitry Andric       : RegisterInfoInterface(target_arch), m_orig_ax_info(orig_ax_info) {}
21*06c3fb27SDimitry Andric 
GetOrigAxInfo()22*06c3fb27SDimitry Andric   const RegisterInfo &GetOrigAxInfo() const { return m_orig_ax_info; }
23*06c3fb27SDimitry Andric 
24*06c3fb27SDimitry Andric private:
25*06c3fb27SDimitry Andric   lldb_private::RegisterInfo m_orig_ax_info;
26*06c3fb27SDimitry Andric };
27*06c3fb27SDimitry Andric 
28*06c3fb27SDimitry Andric } // namespace lldb_private
29*06c3fb27SDimitry Andric 
30*06c3fb27SDimitry Andric #endif
31