mirror of
https://github.com/chromium/crashpad.git
synced 2024-12-29 00:32:35 +08:00
2fb4e9e6a4
macOS 10.15 (“Catalina”) introduces a single new field to its dyld_all_image_infos structure, and uses structure version 16. macOS 10.13 and 10.14 were documented in <mach-o/dyld_images.h> as using structure version 16, but they actually use version 15. They should have used version 16, as they do use a structure expanded from macOS 10.12, which also uses version 15. Previously, process_types was true to the documentation, but now that this is known to be incorrect, it’s been revised to reflect reality. Because two variants of the version 15 structure exist, run-time OS version detection is used to disambiguate. Bug: crashpad:310 Test: crashpad_snapshot_test ProcessTypes.DyldImagesSelf (10.15 SDK) Change-Id: Ibc82b6a73809949f4bbf416ece7aa955b627c573 Reviewed-on: https://chromium-review.googlesource.com/c/crashpad/crashpad/+/1852109 Commit-Queue: Mark Mentovai <mark@chromium.org> Reviewed-by: Robert Sesek <rsesek@chromium.org>
75 lines
1.6 KiB
C
75 lines
1.6 KiB
C
// Copyright 2014 The Crashpad Authors. All rights reserved.
|
|
//
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
// you may not use this file except in compliance with the License.
|
|
// You may obtain a copy of the License at
|
|
//
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
//
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
// See the License for the specific language governing permissions and
|
|
// limitations under the License.
|
|
|
|
#ifndef CRASHPAD_COMPAT_MAC_AVAILABILITYMACROS_H_
|
|
#define CRASHPAD_COMPAT_MAC_AVAILABILITYMACROS_H_
|
|
|
|
#include_next <AvailabilityMacros.h>
|
|
|
|
// 10.7 SDK
|
|
|
|
#ifndef MAC_OS_X_VERSION_10_7
|
|
#define MAC_OS_X_VERSION_10_7 1070
|
|
#endif
|
|
|
|
// 10.8 SDK
|
|
|
|
#ifndef MAC_OS_X_VERSION_10_8
|
|
#define MAC_OS_X_VERSION_10_8 1080
|
|
#endif
|
|
|
|
// 10.9 SDK
|
|
|
|
#ifndef MAC_OS_X_VERSION_10_9
|
|
#define MAC_OS_X_VERSION_10_9 1090
|
|
#endif
|
|
|
|
// 10.10 SDK
|
|
|
|
#ifndef MAC_OS_X_VERSION_10_10
|
|
#define MAC_OS_X_VERSION_10_10 101000
|
|
#endif
|
|
|
|
// 10.11 SDK
|
|
|
|
#ifndef MAC_OS_X_VERSION_10_11
|
|
#define MAC_OS_X_VERSION_10_11 101100
|
|
#endif
|
|
|
|
// 10.12 SDK
|
|
|
|
#ifndef MAC_OS_X_VERSION_10_12
|
|
#define MAC_OS_X_VERSION_10_12 101200
|
|
#endif
|
|
|
|
// 10.13 SDK
|
|
|
|
#ifndef MAC_OS_X_VERSION_10_13
|
|
#define MAC_OS_X_VERSION_10_13 101300
|
|
#endif
|
|
|
|
// 10.14 SDK
|
|
|
|
#ifndef MAC_OS_X_VERSION_10_14
|
|
#define MAC_OS_X_VERSION_10_14 101400
|
|
#endif
|
|
|
|
// 10.15 SDK
|
|
|
|
#ifndef MAC_OS_X_VERSION_10_15
|
|
#define MAC_OS_X_VERSION_10_15 101500
|
|
#endif
|
|
|
|
#endif // CRASHPAD_COMPAT_MAC_AVAILABILITYMACROS_H_
|