<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Information about a mapped region of memory. <ahref="structcrashpad_1_1MemoryMap_1_1Mapping.html#details">More...</a><br/></td></tr>
<trclass="memdesc:a5bf1c848697e19b287a6651910e4cd6b"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Initializes this object with information about the mapped memory regions in the process whose ID is <em>pid</em>. <ahref="#a5bf1c848697e19b287a6651910e4cd6b">More...</a><br/></td></tr>
<trclass="memdesc:acb5f4f10a435c0fbbee6dee5dca99955"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Find the first <aclass="el"href="structcrashpad_1_1MemoryMap_1_1Mapping.html"title="Information about a mapped region of memory. ">Mapping</a> in a series of mappings for the same file. <ahref="#acb5f4f10a435c0fbbee6dee5dca99955">More...</a><br/></td></tr>
<divclass="textblock"><p>Accesses information about mapped memory in another process. </p>
<p>The target process must be stopped to guarantee correct mappings. If the target process is not stopped, mappings may be invalid after the return from <aclass="el"href="classcrashpad_1_1MemoryMap.html#a5bf1c848697e19b287a6651910e4cd6b"title="Initializes this object with information about the mapped memory regions in the process whose ID is p...">Initialize()</a>, and even mappings existing at the time <aclass="el"href="classcrashpad_1_1MemoryMap.html#a5bf1c848697e19b287a6651910e4cd6b"title="Initializes this object with information about the mapped memory regions in the process whose ID is p...">Initialize()</a> was called may not be found. </p>
</div><h2class="groupheader">Member Function Documentation</h2>
<p>Find the first <aclass="el"href="structcrashpad_1_1MemoryMap_1_1Mapping.html"title="Information about a mapped region of memory. ">Mapping</a> in a series of mappings for the same file. </p>
<p>Executables and libaries are typically loaded into several mappings with varying permissions for different segments. This method searches for the mapping with the highest address at or below <em>mapping</em>, which maps the same file as <em>mapping</em> from file offset 0.</p>
<p>If <em>mapping</em> is not found, <code>nullptr</code> is returned. If <em>mapping</em> is found but does not map a file, <em>mapping</em> is returned.</p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">mapping</td><td>A <aclass="el"href="structcrashpad_1_1MemoryMap_1_1Mapping.html"title="Information about a mapped region of memory. ">Mapping</a> whose series to find the start of. </td></tr>
</table>
</dd>
</dl>
<dlclass="section return"><dt>Returns</dt><dd>The first <aclass="el"href="structcrashpad_1_1MemoryMap_1_1Mapping.html"title="Information about a mapped region of memory. ">Mapping</a> in the series or <code>nullptr</code> on failure with a message logged. </dd></dl>
<dlclass="section return"><dt>Returns</dt><dd>The <aclass="el"href="structcrashpad_1_1MemoryMap_1_1Mapping.html"title="Information about a mapped region of memory. ">Mapping</a> containing <em>address</em> or <code>nullptr</code> if no match is found. The caller does not take ownership of this object. It is scoped to the lifetime of the <aclass="el"href="classcrashpad_1_1MemoryMap.html"title="Accesses information about mapped memory in another process. ">MemoryMap</a> object that it was obtained from. </dd></dl>
<dlclass="section return"><dt>Returns</dt><dd>The <aclass="el"href="structcrashpad_1_1MemoryMap_1_1Mapping.html"title="Information about a mapped region of memory. ">Mapping</a> with the lowest base address whose name is <em>name</em> or <code>nullptr</code> if no match is found. The caller does not take ownership of this object. It is scoped to the lifetime of the <aclass="el"href="classcrashpad_1_1MemoryMap.html"title="Accesses information about mapped memory in another process. ">MemoryMap</a> object that it was obtained from. </dd></dl>