LIEF: Library to Instrument Executable Formats Version 0.16.0
Loading...
Searching...
No Matches
Abstract/DebugInfo.hpp
Go to the documentation of this file.
1/* Copyright 2022 - 2024 R. Thomas
2 *
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15#ifndef LIEF_DEBUGINFO_H
16#define LIEF_DEBUGINFO_H
17#include <memory>
18namespace LIEF {
19
20namespace details {
21class DebugInfo;
22}
23
24class DebugInfo {
25 public:
26 enum class FORMAT {
27 UNKNOWN = 0,
28 DWARF, PDB,
29 };
30 DebugInfo(std::unique_ptr<details::DebugInfo> impl);
31 virtual ~DebugInfo();
32
33 virtual FORMAT format() const {
34 return FORMAT::UNKNOWN;
35 }
36
37 protected:
38 std::unique_ptr<details::DebugInfo> impl_;
39};
40
41}
42#endif
Definition Abstract/DebugInfo.hpp:24
DebugInfo(std::unique_ptr< details::DebugInfo > impl)
virtual ~DebugInfo()
FORMAT
Definition Abstract/DebugInfo.hpp:26
virtual FORMAT format() const
Definition Abstract/DebugInfo.hpp:33
LIEF namespace.
Definition Abstract/Binary.hpp:32