OLD | NEW |
1 // Copyright 2014 The Crashpad Authors. All rights reserved. | 1 // Copyright 2014 The Crashpad Authors. All rights reserved. |
2 // | 2 // |
3 // Licensed under the Apache License, Version 2.0 (the "License"); | 3 // Licensed under the Apache License, Version 2.0 (the "License"); |
4 // you may not use this file except in compliance with the License. | 4 // you may not use this file except in compliance with the License. |
5 // You may obtain a copy of the License at | 5 // You may obtain a copy of the License at |
6 // | 6 // |
7 // http://www.apache.org/licenses/LICENSE-2.0 | 7 // http://www.apache.org/licenses/LICENSE-2.0 |
8 // | 8 // |
9 // Unless required by applicable law or agreed to in writing, software | 9 // Unless required by applicable law or agreed to in writing, software |
10 // distributed under the License is distributed on an "AS IS" BASIS, | 10 // distributed under the License is distributed on an "AS IS" BASIS, |
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
443 //! | 443 //! |
444 //! \param[in] code_0 The first exception code (`code[0]`) passed to a Mach | 444 //! \param[in] code_0 The first exception code (`code[0]`) passed to a Mach |
445 //! exception handler in an `EXC_CRASH` exception. It is invalid to call | 445 //! exception handler in an `EXC_CRASH` exception. It is invalid to call |
446 //! this function with an exception code from any exception other than | 446 //! this function with an exception code from any exception other than |
447 //! `EXC_CRASH`. | 447 //! `EXC_CRASH`. |
448 //! \param[out] original_code_0 The first exception code (`code[0]`) passed to | 448 //! \param[out] original_code_0 The first exception code (`code[0]`) passed to |
449 //! the Mach exception handler for a hardware exception that resulted in the | 449 //! the Mach exception handler for a hardware exception that resulted in the |
450 //! generation of a POSIX signal that caused process termination. If the | 450 //! generation of a POSIX signal that caused process termination. If the |
451 //! signal that caused termination was not sent as a result of a hardware | 451 //! signal that caused termination was not sent as a result of a hardware |
452 //! exception, this will be `0`. Callers that do not need this value may | 452 //! exception, this will be `0`. Callers that do not need this value may |
453 //! pass `NULL`. | 453 //! pass `nullptr`. |
454 //! \param[out] signal The POSIX signal that caused process termination. Callers | 454 //! \param[out] signal The POSIX signal that caused process termination. Callers |
455 //! that do not need this value may pass `NULL`. | 455 //! that do not need this value may pass `nullptr`. |
456 //! | 456 //! |
457 //! \return The original exception for a hardware exception that resulted in the | 457 //! \return The original exception for a hardware exception that resulted in the |
458 //! generation of a POSIX signal that caused process termination. If the | 458 //! generation of a POSIX signal that caused process termination. If the |
459 //! signal that caused termination was not sent as a result of a hardware | 459 //! signal that caused termination was not sent as a result of a hardware |
460 //! exception, this will be `0`. | 460 //! exception, this will be `0`. |
461 exception_type_t ExcCrashRecoverOriginalException( | 461 exception_type_t ExcCrashRecoverOriginalException( |
462 mach_exception_code_t code_0, | 462 mach_exception_code_t code_0, |
463 mach_exception_code_t* original_code_0, | 463 mach_exception_code_t* original_code_0, |
464 int* signal); | 464 int* signal); |
465 | 465 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
509 //! \a behavior is not a state-carrying behavior, or when it is a | 509 //! \a behavior is not a state-carrying behavior, or when it is a |
510 //! state-carrying behavior and \a set_thread_state is `true`. | 510 //! state-carrying behavior and \a set_thread_state is `true`. |
511 //! `MACH_RCV_PORT_DIED` is used when \a behavior is a state-carrying | 511 //! `MACH_RCV_PORT_DIED` is used when \a behavior is a state-carrying |
512 //! behavior and \a set_thread_state is `false`. | 512 //! behavior and \a set_thread_state is `false`. |
513 kern_return_t ExcServerSuccessfulReturnValue(exception_behavior_t behavior, | 513 kern_return_t ExcServerSuccessfulReturnValue(exception_behavior_t behavior, |
514 bool set_thread_state); | 514 bool set_thread_state); |
515 | 515 |
516 } // namespace crashpad | 516 } // namespace crashpad |
517 | 517 |
518 #endif // CRASHPAD_UTIL_MACH_EXC_SERVER_VARIANTS_H_ | 518 #endif // CRASHPAD_UTIL_MACH_EXC_SERVER_VARIANTS_H_ |
OLD | NEW |