symbols.h 653 B

123456789101112131415161718192021222324252627282930
  1. // Copyright 2014 Citra Emulator Project
  2. // Licensed under GPLv2 or any later version
  3. // Refer to the license.txt file included.
  4. #pragma once
  5. #include <map>
  6. #include <string>
  7. #include <utility>
  8. #include "common/common_types.h"
  9. struct TSymbol {
  10. u32 address = 0;
  11. std::string name;
  12. u32 size = 0;
  13. u32 type = 0;
  14. };
  15. typedef std::map<u32, TSymbol> TSymbolsMap;
  16. typedef std::pair<u32, TSymbol> TSymbolsPair;
  17. namespace Symbols {
  18. bool HasSymbol(u32 address);
  19. void Add(u32 address, const std::string& name, u32 size, u32 type);
  20. TSymbol GetSymbol(u32 address);
  21. const std::string GetName(u32 address);
  22. void Remove(u32 address);
  23. void Clear();
  24. }