// Copyright 2014 The Crashpad Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. #ifndef CRASHPAD_SNAPSHOT_SNAPSHOT_CPU_CONTEXT_H_ #define CRASHPAD_SNAPSHOT_SNAPSHOT_CPU_CONTEXT_H_ #include <stdint.h> #include "snapshot/cpu_architecture.h" #include "util/numeric/int128.h" namespace crashpad { //! \brief A context structure carrying 32-bit x86 CPU state. struct CPUContextX86 { … }; //! \brief A context structure carrying x86_64 CPU state. struct CPUContextX86_64 { … }; //! \brief A context structure carrying ARM CPU state. struct CPUContextARM { … }; //! \brief A context structure carrying ARM64 CPU state. struct CPUContextARM64 { … }; //! \brief A context structure carrying MIPS CPU state. struct CPUContextMIPS { … }; //! \brief A context structure carrying MIPS64 CPU state. struct CPUContextMIPS64 { … }; //! \brief A context structure carrying RISCV64 CPU state. struct CPUContextRISCV64 { … }; //! \brief A context structure capable of carrying the context of any supported //! CPU architecture. struct CPUContext { … }; } // namespace crashpad #endif // CRASHPAD_SNAPSHOT_SNAPSHOT_CPU_CONTEXT_H_