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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
110 virtual ModuleType GetModuleType() const = 0; | 110 virtual ModuleType GetModuleType() const = 0; |
111 | 111 |
112 //! \brief Returns the module’s UUID in the \a uuid parameter, and the age of | 112 //! \brief Returns the module’s UUID in the \a uuid parameter, and the age of |
113 //! that UUID in \a age. | 113 //! that UUID in \a age. |
114 //! | 114 //! |
115 //! A snapshot module’s UUID is taken directly from the module itself. If the | 115 //! A snapshot module’s UUID is taken directly from the module itself. If the |
116 //! module does not have a UUID, the \a uuid parameter will be zeroed out. | 116 //! module does not have a UUID, the \a uuid parameter will be zeroed out. |
117 //! | 117 //! |
118 //! \a age is the number of times the UUID has been reused. This occurs on | 118 //! \a age is the number of times the UUID has been reused. This occurs on |
119 //! Windows with incremental linking. On other platforms \a age will always be | 119 //! Windows with incremental linking. On other platforms \a age will always be |
120 //! `0`. | 120 //! `0`. |
Mark Mentovai
2015/10/28 20:01:10
//! \sa DebugFileName()
scottmg
2015/10/28 20:59:25
Done.
| |
121 virtual void UUIDAndAge(crashpad::UUID* uuid, uint32_t* age) const = 0; | 121 virtual void UUIDAndAge(crashpad::UUID* uuid, uint32_t* age) const = 0; |
122 | 122 |
123 //! \brief Returns the module’s PDB link name. | |
124 //! | |
125 //! On Windows, the PDB contains symbol information, held separately from the | |
126 //! module itself. On other platforms, this should just be the basename of the | |
Mark Mentovai
2015/10/28 20:01:10
“should” → “is normally”
scottmg
2015/10/28 20:59:25
Done.
| |
127 //! module. | |
Mark Mentovai
2015/10/28 20:01:10
“, because the debug info file’s name is not relev
Mark Mentovai
2015/10/28 20:01:11
//! \sa UUIDAndAge()
scottmg
2015/10/28 20:59:25
Done.
scottmg
2015/10/28 20:59:25
Done.
| |
128 virtual std::string PDBName() const = 0; | |
Mark Mentovai
2015/10/28 20:01:10
Let’s try to keep things more generic in snapshot,
scottmg
2015/10/28 20:59:24
Done.
| |
129 | |
123 //! \brief Returns string annotations recorded in the module. | 130 //! \brief Returns string annotations recorded in the module. |
124 //! | 131 //! |
125 //! This method retrieves annotations recorded in a module. These annotations | 132 //! This method retrieves annotations recorded in a module. These annotations |
126 //! are intended for diagnostic use, including crash analysis. A module may | 133 //! are intended for diagnostic use, including crash analysis. A module may |
127 //! contain multiple annotations, so they are returned in a vector. | 134 //! contain multiple annotations, so they are returned in a vector. |
128 //! | 135 //! |
129 //! For Mac OS X snapshots, these annotations are found by interpreting the | 136 //! For Mac OS X snapshots, these annotations are found by interpreting the |
130 //! module’s `__DATA, __crash_info` section as `crashreporter_annotations_t`. | 137 //! module’s `__DATA, __crash_info` section as `crashreporter_annotations_t`. |
131 //! System libraries using the crash reporter client interface may reference | 138 //! System libraries using the crash reporter client interface may reference |
132 //! annotations in this structure. Additional annotations messages may be | 139 //! annotations in this structure. Additional annotations messages may be |
(...skipping 21 matching lines...) Expand all Loading... | |
154 //! The annotations returned by this method do not duplicate those returned by | 161 //! The annotations returned by this method do not duplicate those returned by |
155 //! AnnotationsVector(). Additional annotations related to the process, | 162 //! AnnotationsVector(). Additional annotations related to the process, |
156 //! system, or snapshot producer may be obtained by calling | 163 //! system, or snapshot producer may be obtained by calling |
157 //! ProcessSnapshot::AnnotationsSimpleMap(). | 164 //! ProcessSnapshot::AnnotationsSimpleMap(). |
158 virtual std::map<std::string, std::string> AnnotationsSimpleMap() const = 0; | 165 virtual std::map<std::string, std::string> AnnotationsSimpleMap() const = 0; |
159 }; | 166 }; |
160 | 167 |
161 } // namespace crashpad | 168 } // namespace crashpad |
162 | 169 |
163 #endif // CRASHPAD_SNAPSHOT_MODULE_SNAPSHOT_H_ | 170 #endif // CRASHPAD_SNAPSHOT_MODULE_SNAPSHOT_H_ |
OLD | NEW |