diff options
author | Liam <byteslice@airmail.cc> | 2022-04-09 05:53:42 +0200 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2022-04-09 08:16:34 +0200 |
commit | b29242862bb650bd3c0d3dbad0466a30d2d015e5 (patch) | |
tree | 265f95f179b17d38ee58925667ccc724948be708 /src/core/arm/symbols.h | |
parent | Merge pull request #8138 from german77/data-no-race (diff) | |
download | yuzu-b29242862bb650bd3c0d3dbad0466a30d2d015e5.tar yuzu-b29242862bb650bd3c0d3dbad0466a30d2d015e5.tar.gz yuzu-b29242862bb650bd3c0d3dbad0466a30d2d015e5.tar.bz2 yuzu-b29242862bb650bd3c0d3dbad0466a30d2d015e5.tar.lz yuzu-b29242862bb650bd3c0d3dbad0466a30d2d015e5.tar.xz yuzu-b29242862bb650bd3c0d3dbad0466a30d2d015e5.tar.zst yuzu-b29242862bb650bd3c0d3dbad0466a30d2d015e5.zip |
Diffstat (limited to 'src/core/arm/symbols.h')
-rw-r--r-- | src/core/arm/symbols.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/core/arm/symbols.h b/src/core/arm/symbols.h new file mode 100644 index 000000000..99e6a9f8e --- /dev/null +++ b/src/core/arm/symbols.h @@ -0,0 +1,27 @@ +// Copyright 2022 yuzu Emulator Project +// Licensed under GPLv2 or any later version +// Refer to the license.txt file included. + +#pragma once + +#include <map> +#include <optional> +#include <span> +#include <string> +#include <utility> + +#include "common/common_types.h" + +namespace Core::Memory { +class Memory; +} // namespace Core::Memory + +namespace Core::Symbols { + +using Symbols = std::map<std::string, std::pair<VAddr, std::size_t>, std::less<>>; + +Symbols GetSymbols(VAddr base, Core::Memory::Memory& memory, bool is_64 = true); +Symbols GetSymbols(std::span<const u8> data, bool is_64 = true); +std::optional<std::string> GetSymbolName(const Symbols& symbols, VAddr addr); + +} // namespace Core::Symbols |