libintrovirt v0.57.4
IntroVirt introspection library
Loading...
Searching...
No Matches
UnwindInfo.hh
Go to the documentation of this file.
1/*
2 * Copyright 2021 Assured Information Security, Inc.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16#pragma once
17
18#include "RUNTIME_FUNCTION.hh"
19#include "UnwindCode.hh"
20
22
23#include <cstdint>
24#include <memory>
25#include <vector>
26
27namespace introvirt {
28namespace windows {
29namespace pe {
30
32 public:
33 virtual uint8_t Version() const = 0;
34 virtual uint8_t Flags() const = 0;
35 virtual uint8_t SizeOfProlog() const = 0;
36 virtual uint8_t CountOfCodes() const = 0;
37 virtual uint8_t FrameRegister() const = 0;
38 virtual uint8_t FrameOffset() const = 0;
39
40 virtual const std::vector<std::unique_ptr<const UnwindCode>>& codes() const = 0;
41
42 virtual bool is_chained() const = 0;
44
45 virtual uint32_t exception_handler_rva() const = 0;
46
47 virtual ~UnwindInfo() = default;
48};
49
50} /* namespace pe */
51} /* namespace windows */
52} /* namespace introvirt */
Definition IMAGE_EXCEPTION_SECTION.hh:26
Definition RUNTIME_FUNCTION.hh:28
Definition UnwindInfo.hh:31
virtual uint8_t FrameOffset() const =0
virtual uint8_t Flags() const =0
virtual uint8_t FrameRegister() const =0
virtual uint8_t CountOfCodes() const =0
const RUNTIME_FUNCTION * chained_function(const IMAGE_EXCEPTION_SECTION *pdata) const
virtual bool is_chained() const =0
virtual uint8_t SizeOfProlog() const =0
virtual uint32_t exception_handler_rva() const =0
virtual uint8_t Version() const =0
virtual const std::vector< std::unique_ptr< const UnwindCode > > & codes() const =0
Core IntroVirt classes.
Definition Cr0.hh:20