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 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 void set_gather_indirectly_referenced_memory( | 157 void set_gather_indirectly_referenced_memory( |
158 TriState gather_indirectly_referenced_memory, | 158 TriState gather_indirectly_referenced_memory, |
159 uint32_t limit) { | 159 uint32_t limit) { |
160 gather_indirectly_referenced_memory_ = gather_indirectly_referenced_memory; | 160 gather_indirectly_referenced_memory_ = gather_indirectly_referenced_memory; |
161 indirectly_referenced_memory_cap_ = limit; | 161 indirectly_referenced_memory_cap_ = limit; |
162 } | 162 } |
163 | 163 |
164 //! \brief Adds a custom stream to the minidump. | 164 //! \brief Adds a custom stream to the minidump. |
165 //! | 165 //! |
166 //! The memory block referenced by \a data and \a size will added to the | 166 //! The memory block referenced by \a data and \a size will added to the |
167 //! minidump as separate stream with type \stream_type. The memory referred to | 167 //! minidump as separate stream with type \a stream_type. The memory referred |
168 //! by \a data and \a size is owned by the caller and must remain valid while | 168 //! to by \a data and \a size is owned by the caller and must remain valid |
169 //! it is in effect for the CrashpadInfo object. | 169 //! while it is in effect for the CrashpadInfo object. |
170 //! | 170 //! |
171 //! Note that streams will appear in the minidump in the reverse order to | 171 //! Note that streams will appear in the minidump in the reverse order to |
172 //! which they are added. | 172 //! which they are added. |
173 //! | 173 //! |
174 //! TODO(scottmg) This is currently only supported on Windows. | 174 //! TODO(scottmg) This is currently only supported on Windows. |
175 //! | 175 //! |
176 //! \param[in] stream_type The stream type identifier to use. This should be | 176 //! \param[in] stream_type The stream type identifier to use. This should be |
177 //! normally be larger than `MINIDUMP_STREAM_TYPE::LastReservedStream` | 177 //! normally be larger than `MINIDUMP_STREAM_TYPE::LastReservedStream` |
178 //! which is `0xffff`. | 178 //! which is `0xffff`. |
179 //! \param[in] data The base pointer of the stream data. | 179 //! \param[in] data The base pointer of the stream data. |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 #if defined(__clang__) | 217 #if defined(__clang__) |
218 #pragma clang diagnostic pop | 218 #pragma clang diagnostic pop |
219 #endif | 219 #endif |
220 | 220 |
221 DISALLOW_COPY_AND_ASSIGN(CrashpadInfo); | 221 DISALLOW_COPY_AND_ASSIGN(CrashpadInfo); |
222 }; | 222 }; |
223 | 223 |
224 } // namespace crashpad | 224 } // namespace crashpad |
225 | 225 |
226 #endif // CRASHPAD_CLIENT_CRASHPAD_INFO_H_ | 226 #endif // CRASHPAD_CLIENT_CRASHPAD_INFO_H_ |
OLD | NEW |