Serenity Operating System
at master 32 lines 795 B view raw
1/* 2 * Copyright (c) 2021, Itamar S. <itamar8910@gmail.com> 3 * 4 * SPDX-License-Identifier: BSD-2-Clause 5 */ 6 7#pragma once 8 9#include "DebugInfo.h" 10#include <AK/Types.h> 11#include <LibCore/MappedFile.h> 12#include <LibELF/Image.h> 13 14namespace Debug { 15struct LoadedLibrary { 16 DeprecatedString name; 17 NonnullRefPtr<Core::MappedFile> file; 18 NonnullOwnPtr<ELF::Image> image; 19 NonnullOwnPtr<DebugInfo> debug_info; 20 FlatPtr base_address {}; 21 22 LoadedLibrary(DeprecatedString const& name, NonnullRefPtr<Core::MappedFile> file, NonnullOwnPtr<ELF::Image> image, NonnullOwnPtr<DebugInfo>&& debug_info, FlatPtr base_address) 23 : name(name) 24 , file(move(file)) 25 , image(move(image)) 26 , debug_info(move(debug_info)) 27 , base_address(base_address) 28 { 29 } 30}; 31 32}