DebugSymbolReader.h 576 B

123456789101112131415161718192021222324
  1. #pragma once
  2. #include <cstdint>
  3. namespace il2cpp
  4. {
  5. namespace utils
  6. {
  7. struct SourceLocation
  8. {
  9. const char* filePath;
  10. uint32_t lineNumber;
  11. };
  12. class DebugSymbolReader
  13. {
  14. public:
  15. static bool LoadDebugSymbols();
  16. static bool GetSourceLocation(void* nativeInsturctionPointer, SourceLocation& sourceLocation);
  17. static bool AddStackFrames(void* nativeInsturctionPointer, std::vector<Il2CppStackFrameInfo>* stackFrames);
  18. static bool DebugSymbolsAvailable();
  19. };
  20. } /* namespace utils */
  21. } /* namespace il2cpp */