symbols.h 700 B

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