mirror of
https://github.com/chromium/crashpad.git
synced 2025-01-15 10:07:56 +08:00
e9937cb36c
Crashpad currently has a circular dependency: client->snapshot->client. The dependency from snapshot -> client only exists to pull in a single constant for Windows (CrashpadClient::kTriggeredExceptionCode), so this change breaks the dependency by splitting the constant out into a new file util/win/exception_codes.h. Change-Id: I6b74b367df716e097758e63a44c53cb92ea5e04d Reviewed-on: https://chromium-review.googlesource.com/c/crashpad/crashpad/+/3450763 Reviewed-by: Mark Mentovai <mark@chromium.org> Commit-Queue: Justin Cohen <justincohen@chromium.org>
38 lines
1.3 KiB
C++
38 lines
1.3 KiB
C++
// Copyright 2022 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_UTIL_WIN_EXCEPTION_CODES_H_
|
|
#define CRASHPAD_UTIL_WIN_EXCEPTION_CODES_H_
|
|
|
|
#include <stdint.h>
|
|
|
|
namespace crashpad {
|
|
|
|
//! \brief Crashpad-specific exception codes that are used as arguments to
|
|
//! `RaiseException()` in unusual circumstances.
|
|
enum ExceptionCodes : uint32_t {
|
|
//! \brief The exception code (roughly "Client called") used when
|
|
//! DumpAndCrashTargetProcess() triggers an exception in a target
|
|
//! process.
|
|
//!
|
|
//! \note This value does not have any bits of the top nibble set, to avoid
|
|
//! confusion with real exception codes which tend to have those bits
|
|
//! set.
|
|
kTriggeredExceptionCode = 0xcca11ed,
|
|
};
|
|
|
|
} // namespace crashpad
|
|
|
|
#endif // CRASHPAD_UTIL_WIN_EXCEPTION_CODES_H_
|