LoadedLibrary.h 758 B

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