2021-11-19 16:13:07 +02:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2021, Itamar S. <itamar8910@gmail.com>
|
|
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "DebugInfo.h"
|
|
|
|
|
#include <AK/Types.h>
|
2021-11-23 11:32:25 +01:00
|
|
|
#include <LibCore/MappedFile.h>
|
2021-11-19 16:13:07 +02:00
|
|
|
#include <LibELF/Image.h>
|
|
|
|
|
|
|
|
|
|
namespace Debug {
|
|
|
|
|
struct LoadedLibrary {
|
2023-12-16 17:49:34 +03:30
|
|
|
ByteString name;
|
2023-09-26 00:54:34 +02:00
|
|
|
NonnullOwnPtr<Core::MappedFile> file;
|
2021-11-19 16:13:07 +02:00
|
|
|
NonnullOwnPtr<ELF::Image> image;
|
|
|
|
|
NonnullOwnPtr<DebugInfo> debug_info;
|
|
|
|
|
FlatPtr base_address {};
|
|
|
|
|
|
2023-12-16 17:49:34 +03:30
|
|
|
LoadedLibrary(ByteString const& name, NonnullOwnPtr<Core::MappedFile> file, NonnullOwnPtr<ELF::Image> image, NonnullOwnPtr<DebugInfo>&& debug_info, FlatPtr base_address)
|
2021-11-19 16:13:07 +02:00
|
|
|
: name(name)
|
|
|
|
|
, file(move(file))
|
|
|
|
|
, image(move(image))
|
|
|
|
|
, debug_info(move(debug_info))
|
|
|
|
|
, base_address(base_address)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
}
|