<ahref="#pub-methods">Public Member Functions</a>|
<ahref="classcrashpad_1_1internal_1_1ModuleSnapshotMinidump-members.html">List of all members</a></div>
<divclass="headertitle">
<divclass="title">crashpad::internal::ModuleSnapshotMinidump Class Reference<spanclass="mlabels"><spanclass="mlabel">final</span></span></div></div>
</div><!--header-->
<divclass="contents">
<p>A <aclass="el"href="classcrashpad_1_1ModuleSnapshot.html"title="An abstract interface to a snapshot representing a code module (binary image) loaded into a snapshot ...">ModuleSnapshot</a> based on a module in a minidump file.
<areahref="classcrashpad_1_1ModuleSnapshot.html"title="An abstract interface to a snapshot representing a code module (binary image) loaded into a snapshot ..."alt="crashpad::ModuleSnapshot"shape="rect"coords="0,0,386,24"/>
<trclass="memdesc:a1063e65e070eb6e9b06797319f144a15"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Initializes the object. <ahref="#a1063e65e070eb6e9b06797319f144a15">More...</a><br/></td></tr>
<trclass="memdesc:a0986a357224f94b99311984b65e6254b"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns the module’s pathname. <br/></td></tr>
<trclass="memdesc:adf1958b6e72c86c5df40b4d56cd00a69"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns the base address that the module is loaded at in the snapshot process. <br/></td></tr>
<trclass="memdesc:a8b7ca559f3006665795118852f2bab89"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns the size that the module occupies in the snapshot process’ address space, starting at its base address. <ahref="#a8b7ca559f3006665795118852f2bab89">More...</a><br/></td></tr>
<trclass="memdesc:a875a58ab05c48a7009eb82455a0376c6"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns the module’s timestamp, if known. <ahref="#a875a58ab05c48a7009eb82455a0376c6">More...</a><br/></td></tr>
<trclass="memdesc:a68b5f5bf99675f59afaad3bdf785bad6"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns the module’s file version in the <em>version_*</em> parameters. <ahref="#a68b5f5bf99675f59afaad3bdf785bad6">More...</a><br/></td></tr>
<trclass="memdesc:a8184f644b6d4eace129f9918673789de"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns the module’s source version in the <em>version_*</em> parameters. <ahref="#a8184f644b6d4eace129f9918673789de">More...</a><br/></td></tr>
<trclass="memdesc:ac874f6717e8e81464bff57db2274add5"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns the module’s <aclass="el"href="structcrashpad_1_1UUID.html"title="A universally unique identifier (UUID). ">UUID</a> in the <em>uuid</em> parameter, and the age of that <aclass="el"href="structcrashpad_1_1UUID.html"title="A universally unique identifier (UUID). ">UUID</a> in <em>age</em>. <ahref="#ac874f6717e8e81464bff57db2274add5">More...</a><br/></td></tr>
<trclass="memdesc:a19863780827939572c3ea36ef0077dbe"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns string annotations recorded in the module. <ahref="#a19863780827939572c3ea36ef0077dbe">More...</a><br/></td></tr>
<trclass="memdesc:a5650eaea4d201ffa29b0dda5bcce1cf1"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns key-value string annotations recorded in the module. <ahref="#a5650eaea4d201ffa29b0dda5bcce1cf1">More...</a><br/></td></tr>
<divclass="textblock"><p>A <aclass="el"href="classcrashpad_1_1ModuleSnapshot.html"title="An abstract interface to a snapshot representing a code module (binary image) loaded into a snapshot ...">ModuleSnapshot</a> based on a module in a minidump file. </p>
</div><h2class="groupheader">Member Function Documentation</h2>
<p>Returns key-value string annotations recorded in the module. </p>
<p>This method retrieves annotations recorded in a module. These annotations are intended for diagnostic use, including crash analysis. “Simple annotations” are structured as a sequence of key-value pairs, where all keys and values are strings. These are referred to in Chrome as “crash keys.”</p>
<p>For Mac OS X snapshots, these annotations are found by interpreting the <code>__DATA, __crashpad_info</code> section as <code><aclass="el"href="structcrashpad_1_1CrashpadInfo.html"title="A structure that can be used by a Crashpad-enabled program to provide information to the Crashpad cra...">CrashpadInfo</a></code>. Clients can use the Crashpad client interface to store annotations in this structure. Most annotations under the client’s direct control will be retrievable by this method. For clients such as Chrome, this includes the process type.</p>
<p>The annotations returned by this method do not duplicate those returned by <aclass="el"href="classcrashpad_1_1internal_1_1ModuleSnapshotMinidump.html#a19863780827939572c3ea36ef0077dbe"title="Returns string annotations recorded in the module. ">AnnotationsVector()</a>. Additional annotations related to the process, system, or snapshot producer may be obtained by calling <aclass="el"href="classcrashpad_1_1ProcessSnapshot.html#a7f39b29ec055fb4235e5156d55e066cb"title="Returns key-value string annotations recorded for the process, system, or snapshot producer...">ProcessSnapshot::AnnotationsSimpleMap()</a>. </p>
<p>Returns string annotations recorded in the module. </p>
<p>This method retrieves annotations recorded in a module. These annotations are intended for diagnostic use, including crash analysis. A module may contain multiple annotations, so they are returned in a vector.</p>
<p>For Mac OS X snapshots, these annotations are found by interpreting the module’s <code>__DATA, __crash_info</code> section as <code>crashreporter_annotations_t</code>. System libraries using the crash reporter client interface may reference annotations in this structure. Additional annotations messages may be found in other locations, which may be module-specific. The dynamic linker (<code>dyld</code>) can provide an annotation at its <code>_error_string</code> symbol.</p>
<p>The annotations returned by this method do not duplicate those returned by <aclass="el"href="classcrashpad_1_1internal_1_1ModuleSnapshotMinidump.html#a5650eaea4d201ffa29b0dda5bcce1cf1"title="Returns key-value string annotations recorded in the module. ">AnnotationsSimpleMap()</a>. </p>
<p>Returns the module’s file version in the <em>version_*</em> parameters. </p>
<p>If no file version can be determined, the <em>version_*</em> parameters are set to <code>0</code>.</p>
<p>For Mac OS X snapshots, this is taken from the module’s <code>LC_ID_DYLIB</code> load command for shared libraries, and is <code>0</code> for other module types. </p>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">file_reader</td><td>A file reader corresponding to a minidump file. The file reader must support seeking. </td></tr>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">minidump_module_rva</td><td>The file offset in <em>file_reader</em> at which the module’s <aclass="el"href="structMINIDUMP__MODULE.html"title="Information about a specific module loaded within the process at the time the snapshot was taken...">MINIDUMP_MODULE</a> structure is located. </td></tr>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">minidump_crashpad_module_info_location</td><td>The location in <em>file_reader</em> at which the module’s corresponding <aclass="el"href="structcrashpad_1_1MinidumpModuleCrashpadInfo.html"title="Additional Crashpad-specific information about a module carried within a minidump file...">MinidumpModuleCrashpadInfo</a> structure is located. If no such corresponding structure is available for a module, this may be <code>nullptr</code>.</td></tr>
</table>
</dd>
</dl>
<dlclass="section return"><dt>Returns</dt><dd><code>true</code> if the snapshot could be created, <code>false</code> otherwise with an appropriate message logged. </dd></dl>
<p>The timestamp is typically the modification time of the file that provided the module in <code>time_t</code> format, seconds since the POSIX epoch. If the module’s timestamp is unknown, this method returns <code>0</code>. </p>
<p>Returns the module’s <aclass="el"href="structcrashpad_1_1UUID.html"title="A universally unique identifier (UUID). ">UUID</a> in the <em>uuid</em> parameter, and the age of that <aclass="el"href="structcrashpad_1_1UUID.html"title="A universally unique identifier (UUID). ">UUID</a> in <em>age</em>. </p>
<p>A snapshot module’s <aclass="el"href="structcrashpad_1_1UUID.html"title="A universally unique identifier (UUID). ">UUID</a> is taken directly from the module itself. If the module does not have a <aclass="el"href="structcrashpad_1_1UUID.html"title="A universally unique identifier (UUID). ">UUID</a>, the <em>uuid</em> parameter will be zeroed out.</p>
<p><em>age</em> is the number of times the <aclass="el"href="structcrashpad_1_1UUID.html"title="A universally unique identifier (UUID). ">UUID</a> has been reused. This occurs on Windows with incremental linking. On other platforms <em>age</em> will always be <code>0</code>. </p>