LIEF: Library to Instrument Executable Formats
Version 0.17.4
Toggle main menu visibility
Loading...
Searching...
No Matches
install
linux
x86_64
sdk
static
include
LIEF
DWARF
Editor.hpp
Go to the documentation of this file.
1
/* Copyright 2022 - 2025 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_DWARF_EDITOR_H
16
#define LIEF_DWARF_EDITOR_H
17
#include <memory>
18
#include <string>
19
20
#include "
LIEF/visibility.h
"
21
22
namespace
LIEF
{
23
class
Binary
;
24
namespace
dwarf
{
25
26
namespace
details
{
27
class
Editor;
28
}
29
30
namespace
editor
{
31
class
CompilationUnit
;
32
}
33
35
class
LIEF_API
Editor
{
36
public
:
37
Editor
() =
delete
;
38
Editor
(std::unique_ptr<details::Editor> impl);
39
41
static
std::unique_ptr<Editor>
from_binary
(
LIEF::Binary
& bin);
42
44
std::unique_ptr<editor::CompilationUnit>
create_compilation_unit
();
45
47
void
write
(
const
std::string& output);
48
49
~Editor
();
50
51
private
:
52
std::unique_ptr<details::Editor> impl_;
53
54
};
55
56
}
57
}
58
#endif
LIEF::Binary
Generic interface representing a binary executable.
Definition
Abstract/Binary.hpp:59
LIEF::dwarf::Editor::Editor
Editor(std::unique_ptr< details::Editor > impl)
LIEF::dwarf::Editor::from_binary
static std::unique_ptr< Editor > from_binary(LIEF::Binary &bin)
Instantiate an editor for the given binary object.
LIEF::dwarf::Editor::Editor
Editor()=delete
LIEF::dwarf::Editor::write
void write(const std::string &output)
Write the DWARF file to the specified output.
LIEF::dwarf::Editor::~Editor
~Editor()
LIEF::dwarf::Editor::create_compilation_unit
std::unique_ptr< editor::CompilationUnit > create_compilation_unit()
Create a new compilation unit.
LIEF::dwarf::editor::CompilationUnit
This class represents an editable DWARF compilation unit.
Definition
DWARF/editor/CompilationUnit.hpp:41
LIEF::dwarf::details
Definition
DWARF/CompilationUnit.hpp:30
LIEF::dwarf::editor
Definition
Editor.hpp:30
LIEF::dwarf
Namespace for the DWARF debug format.
Definition
DWARF/CompilationUnit.hpp:28
LIEF
LIEF namespace.
Definition
Abstract/Binary.hpp:40
visibility.h
LIEF_API
#define LIEF_API
Definition
visibility.h:41
Generated by
1.17.0