NativeSymbol.h 814 B

1234567891011121314151617181920212223242526
  1. #pragma once
  2. #include "vm/MetadataCache.h"
  3. #include "vm/StackTrace.h"
  4. #include "vm-utils/MethodDefinitionKey.h"
  5. #include "vm-utils/VmMethod.h"
  6. #include <stdint.h>
  7. #include <vector>
  8. namespace il2cpp
  9. {
  10. namespace utils
  11. {
  12. class NativeSymbol
  13. {
  14. public:
  15. #if IL2CPP_ENABLE_NATIVE_STACKTRACES
  16. static void RegisterMethods(const std::vector<MethodDefinitionKey>& managedMethods);
  17. static const VmMethod* GetMethodFromNativeSymbol(Il2CppMethodPointer nativeMethod);
  18. static void GetAllManagedMethodsWithDebugInfo(void(*func)(const MethodInfo* method, Il2CppMethodDebugInfo* methodDebugInfo, void* userData), void* userData);
  19. static bool GetMethodDebugInfo(const MethodInfo* method, Il2CppMethodDebugInfo* methodDebugInfo);
  20. #endif
  21. };
  22. } /* namespace vm */
  23. } /* namespace mono */