| 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, |
| 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 // See the License for the specific language governing permissions and | 12 // See the License for the specific language governing permissions and |
| 13 // limitations under the License. | 13 // limitations under the License. |
| 14 | 14 |
| 15 #ifndef CRASHPAD_SNAPSHOT_EXCEPTION_SNAPSHOT_H_ | 15 #ifndef CRASHPAD_SNAPSHOT_EXCEPTION_SNAPSHOT_H_ |
| 16 #define CRASHPAD_SNAPSHOT_EXCEPTION_SNAPSHOT_H_ | 16 #define CRASHPAD_SNAPSHOT_EXCEPTION_SNAPSHOT_H_ |
| 17 | 17 |
| 18 #include <stdint.h> | 18 #include <stdint.h> |
| 19 | 19 |
| 20 #include <vector> | 20 #include <vector> |
| 21 | 21 |
| 22 #include "snapshot/memory_snapshot.h" |
| 23 |
| 22 namespace crashpad { | 24 namespace crashpad { |
| 23 | 25 |
| 24 struct CPUContext; | 26 struct CPUContext; |
| 25 | 27 |
| 26 //! \brief An abstract interface to a snapshot representing an exception that a | 28 //! \brief An abstract interface to a snapshot representing an exception that a |
| 27 //! snapshot process sustained and triggered the snapshot being taken. | 29 //! snapshot process sustained and triggered the snapshot being taken. |
| 28 class ExceptionSnapshot { | 30 class ExceptionSnapshot { |
| 29 public: | 31 public: |
| 30 virtual ~ExceptionSnapshot() {} | 32 virtual ~ExceptionSnapshot() {} |
| 31 | 33 |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 //! returned. | 98 //! returned. |
| 97 //! | 99 //! |
| 98 //! For Mac OS X, this will be a vector containing the original exception type | 100 //! For Mac OS X, this will be a vector containing the original exception type |
| 99 //! and the values of `code[0]` and `code[1]` as received by a Mach exception | 101 //! and the values of `code[0]` and `code[1]` as received by a Mach exception |
| 100 //! handler. | 102 //! handler. |
| 101 //! | 103 //! |
| 102 //! For Windows, these are additional arguments (if any) as provided to | 104 //! For Windows, these are additional arguments (if any) as provided to |
| 103 //! `RaiseException()`. See the documentation for `ExceptionInformation` in | 105 //! `RaiseException()`. See the documentation for `ExceptionInformation` in |
| 104 //! `EXCEPTION_RECORD`. | 106 //! `EXCEPTION_RECORD`. |
| 105 virtual const std::vector<uint64_t>& Codes() const = 0; | 107 virtual const std::vector<uint64_t>& Codes() const = 0; |
| 108 |
| 109 //! \brief Returns a vector of additional memory blocks that should be |
| 110 //! included in a minidump. |
| 111 //! |
| 112 //! \return A vector of MemorySnapshot objects that will be included in the |
| 113 //! crash dump. The caller does not take ownership of these objects, they |
| 114 //! are scoped to the lifetime of the ThreadSnapshot object that they |
| 115 //! were obtained from. |
| 116 virtual std::vector<const MemorySnapshot*> ExtraMemory() const = 0; |
| 106 }; | 117 }; |
| 107 | 118 |
| 108 } // namespace crashpad | 119 } // namespace crashpad |
| 109 | 120 |
| 110 #endif // CRASHPAD_SNAPSHOT_EXCEPTION_SNAPSHOT_H_ | 121 #endif // CRASHPAD_SNAPSHOT_EXCEPTION_SNAPSHOT_H_ |
| OLD | NEW |