blob: 182b2804b7f623f4c4bc322fae87b35eecd7e7f9 [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Crashpad: crashpad::MemoryMapFuchsia Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="crashpad_doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">Crashpad
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="namespacecrashpad.html">crashpad</a></li><li class="navelem"><a class="el" href="classcrashpad_1_1MemoryMapFuchsia.html">MemoryMapFuchsia</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="classcrashpad_1_1MemoryMapFuchsia-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">crashpad::MemoryMapFuchsia Class Reference</div> </div>
</div><!--header-->
<div class="contents">
<p>A list of mappings in the address space of a Fuchsia process.
<a href="classcrashpad_1_1MemoryMapFuchsia.html#details">More...</a></p>
<p><code>#include &quot;snapshot/fuchsia/memory_map_fuchsia.h&quot;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a823767f99c75c11dbd98ac35f9a6cd33"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcrashpad_1_1MemoryMapFuchsia.html#a823767f99c75c11dbd98ac35f9a6cd33">Initialize</a> (zx_handle_t process)</td></tr>
<tr class="memdesc:a823767f99c75c11dbd98ac35f9a6cd33"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initializes this object with information about the mapped memory regions in the given process. <a href="#a823767f99c75c11dbd98ac35f9a6cd33">More...</a><br /></td></tr>
<tr class="separator:a823767f99c75c11dbd98ac35f9a6cd33"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2e8b50d55a4edc4227c8e7d74e68bff0"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcrashpad_1_1MemoryMapFuchsia.html#a2e8b50d55a4edc4227c8e7d74e68bff0">FindMappingForAddress</a> (zx_vaddr_t address, zx_info_maps_t *map) const</td></tr>
<tr class="memdesc:a2e8b50d55a4edc4227c8e7d74e68bff0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Searches through the previously retrieved memory map for the given address. If found, returns the deepest <code>zx_info_maps_t</code> mapping that contains <em>address</em>. <a href="#a2e8b50d55a4edc4227c8e7d74e68bff0">More...</a><br /></td></tr>
<tr class="separator:a2e8b50d55a4edc4227c8e7d74e68bff0"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>A list of mappings in the address space of a Fuchsia process. </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="a2e8b50d55a4edc4227c8e7d74e68bff0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2e8b50d55a4edc4227c8e7d74e68bff0">&#9670;&nbsp;</a></span>FindMappingForAddress()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool crashpad::MemoryMapFuchsia::FindMappingForAddress </td>
<td>(</td>
<td class="paramtype">zx_vaddr_t&#160;</td>
<td class="paramname"><em>address</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">zx_info_maps_t *&#160;</td>
<td class="paramname"><em>map</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Searches through the previously retrieved memory map for the given address. If found, returns the deepest <code>zx_info_maps_t</code> mapping that contains <em>address</em>. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">address</td><td>The address to locate. </td></tr>
<tr><td class="paramdir">[out]</td><td class="paramname">map</td><td>The <code>zx_info_maps_t</code> data corresponding to the address. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><code>true</code> if a mapping for <em>address</em> was found, in which case <em>map</em> will be filled out, otherwise <code>false</code> and <em>map</em> will be unchanged. </dd></dl>
</div>
</div>
<a id="a823767f99c75c11dbd98ac35f9a6cd33"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a823767f99c75c11dbd98ac35f9a6cd33">&#9670;&nbsp;</a></span>Initialize()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool crashpad::MemoryMapFuchsia::Initialize </td>
<td>(</td>
<td class="paramtype">zx_handle_t&#160;</td>
<td class="paramname"><em>process</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Initializes this object with information about the mapped memory regions in the given process. </p>
<dl class="section return"><dt>Returns</dt><dd><code>true</code> on success, or <code>false</code>, with an error logged. </dd></dl>
</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>snapshot/fuchsia/memory_map_fuchsia.h</li>
<li>snapshot/fuchsia/memory_map_fuchsia.cc</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>