CrashHandler_mac.cpp 726 B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project.
  3. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. // LY Base Crashpad Mac implementation
  9. #include <CrashHandler.h>
  10. #include <AzCore/PlatformIncl.h>
  11. #include <AzCore/IO/SystemFile.h>
  12. #include <mach-o/dyld.h>
  13. namespace CrashHandler
  14. {
  15. const char* crashHandlerPath = "ToolsCrashUploader";
  16. const char* CrashHandlerBase::GetCrashHandlerExecutableName() const
  17. {
  18. return crashHandlerPath;
  19. }
  20. void CrashHandlerBase::GetOSAnnotations(CrashHandlerAnnotations& annotations) const
  21. {
  22. annotations["os"] = "mac";
  23. }
  24. }