symbols.h 724 B

123456789101112131415161718192021222324252627282930313233343536373839
  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. class DebugInterface;
  8. struct TSymbol
  9. {
  10. TSymbol() :
  11. address(0),
  12. size(0),
  13. type(0)
  14. {}
  15. u32 address;
  16. std::string name;
  17. u32 size;
  18. u32 type;
  19. };
  20. typedef std::map<u32, TSymbol> TSymbolsMap;
  21. typedef std::pair<u32, TSymbol> TSymbolsPair;
  22. namespace Symbols
  23. {
  24. bool HasSymbol(u32 _address);
  25. void Add(u32 _address, const std::string& _name, u32 _size, u32 _type);
  26. TSymbol GetSymbol(u32 _address);
  27. const std::string& GetName(u32 _address);
  28. void Remove(u32 _address);
  29. void Clear();
  30. };