<!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.13"/> <meta name="viewport" content="width=device-width, initial-scale=1"/> <title>Crashpad: crashpad::CPUContext Struct 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.13 --> <script type="text/javascript"> var searchBox = new SearchBox("searchBox", "search",false,'Search'); </script> <script type="text/javascript" src="menudata.js"></script> <script type="text/javascript" src="menu.js"></script> <script type="text/javascript"> $(function() { initMenu('',true,false,'search.php','Search'); $(document).ready(function() { init_search(); }); }); </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="structcrashpad_1_1CPUContext.html">CPUContext</a></li> </ul> </div> </div><!-- top --> <div class="header"> <div class="summary"> <a href="#pub-methods">Public Member Functions</a> | <a href="#pub-attribs">Public Attributes</a> | <a href="structcrashpad_1_1CPUContext-members.html">List of all members</a> </div> <div class="headertitle"> <div class="title">crashpad::CPUContext Struct Reference</div> </div> </div><!--header--> <div class="contents"> <p>A context structure capable of carrying the context of any supported CPU architecture. <a href="structcrashpad_1_1CPUContext.html#details">More...</a></p> <p><code>#include "snapshot/cpu_context.h"</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:a41c2c9766b53316eb96db2e0d42ac004"><td class="memItemLeft" align="right" valign="top">uint64_t </td><td class="memItemRight" valign="bottom"><a class="el" href="structcrashpad_1_1CPUContext.html#a41c2c9766b53316eb96db2e0d42ac004">InstructionPointer</a> () const</td></tr> <tr class="memdesc:a41c2c9766b53316eb96db2e0d42ac004"><td class="mdescLeft"> </td><td class="mdescRight">Returns the instruction pointer value from the context structure. <a href="#a41c2c9766b53316eb96db2e0d42ac004">More...</a><br /></td></tr> <tr class="separator:a41c2c9766b53316eb96db2e0d42ac004"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a178339da11c9e4cc2037ed2298cf850f"><td class="memItemLeft" align="right" valign="top">uint64_t </td><td class="memItemRight" valign="bottom"><a class="el" href="structcrashpad_1_1CPUContext.html#a178339da11c9e4cc2037ed2298cf850f">StackPointer</a> () const</td></tr> <tr class="memdesc:a178339da11c9e4cc2037ed2298cf850f"><td class="mdescLeft"> </td><td class="mdescRight">Returns the stack pointer value from the context structure. <a href="#a178339da11c9e4cc2037ed2298cf850f">More...</a><br /></td></tr> <tr class="separator:a178339da11c9e4cc2037ed2298cf850f"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a9b935c8e6a7ccb6bc99f680edd7fffab"><td class="memItemLeft" align="right" valign="top"><a id="a9b935c8e6a7ccb6bc99f680edd7fffab"></a> bool </td><td class="memItemRight" valign="bottom"><a class="el" href="structcrashpad_1_1CPUContext.html#a9b935c8e6a7ccb6bc99f680edd7fffab">Is64Bit</a> () const</td></tr> <tr class="memdesc:a9b935c8e6a7ccb6bc99f680edd7fffab"><td class="mdescLeft"> </td><td class="mdescRight">Returns <code>true</code> if this context is for a 64-bit architecture. <br /></td></tr> <tr class="separator:a9b935c8e6a7ccb6bc99f680edd7fffab"><td class="memSeparator" colspan="2"> </td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a> Public Attributes</h2></td></tr> <tr class="memitem:af71f7a2e8478339d53fcb9d52ded6ae5"><td class="memItemLeft" align="right" valign="top"><a id="af71f7a2e8478339d53fcb9d52ded6ae5"></a> <a class="el" href="namespacecrashpad.html#a270e290ba558e948eb6690bd217cbb71">CPUArchitecture</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="structcrashpad_1_1CPUContext.html#af71f7a2e8478339d53fcb9d52ded6ae5">architecture</a></td></tr> <tr class="memdesc:af71f7a2e8478339d53fcb9d52ded6ae5"><td class="mdescLeft"> </td><td class="mdescRight">The CPU architecture of a context structure. This field controls the expression of the union. <br /></td></tr> <tr class="separator:af71f7a2e8478339d53fcb9d52ded6ae5"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a30ee233a3323294ef3492a27b90ba2fb"><td class="memItemLeft" ><a id="a30ee233a3323294ef3492a27b90ba2fb"></a> union {</td></tr> <tr class="memitem:a560ff18197d8f04420ff84b62f4a6e35"><td class="memItemLeft" >    <a class="el" href="structcrashpad_1_1CPUContextX86.html">CPUContextX86</a> *   <b>x86</b></td></tr> <tr class="separator:a560ff18197d8f04420ff84b62f4a6e35"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a1db8f93ce50d3edcf5c6255f5b6b1752"><td class="memItemLeft" >    <a class="el" href="structcrashpad_1_1CPUContextX86__64.html">CPUContextX86_64</a> *   <b>x86_64</b></td></tr> <tr class="separator:a1db8f93ce50d3edcf5c6255f5b6b1752"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a5e1d2c5aff37447587a75f3ba259dba1"><td class="memItemLeft" >    <a class="el" href="structcrashpad_1_1CPUContextARM.html">CPUContextARM</a> *   <b>arm</b></td></tr> <tr class="separator:a5e1d2c5aff37447587a75f3ba259dba1"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a135891205b273368e8f8a904ac1e8379"><td class="memItemLeft" >    <a class="el" href="structcrashpad_1_1CPUContextARM64.html">CPUContextARM64</a> *   <b>arm64</b></td></tr> <tr class="separator:a135891205b273368e8f8a904ac1e8379"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ae1edc9945f6626da5bfa9f90ef2384e1"><td class="memItemLeft" >    <a class="el" href="structcrashpad_1_1CPUContextMIPS.html">CPUContextMIPS</a> *   <b>mipsel</b></td></tr> <tr class="separator:ae1edc9945f6626da5bfa9f90ef2384e1"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ad45a7734a76e5add3bf336ed4ff722e8"><td class="memItemLeft" >    <a class="el" href="structcrashpad_1_1CPUContextMIPS64.html">CPUContextMIPS64</a> *   <b>mips64</b></td></tr> <tr class="separator:ad45a7734a76e5add3bf336ed4ff722e8"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a30ee233a3323294ef3492a27b90ba2fb"><td class="memItemLeft" valign="top">}; </td><td class="memItemRight" valign="bottom"></td></tr> <tr class="separator:a30ee233a3323294ef3492a27b90ba2fb"><td class="memSeparator" colspan="2"> </td></tr> </table> <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> <div class="textblock"><p>A context structure capable of carrying the context of any supported CPU architecture. </p> </div><h2 class="groupheader">Member Function Documentation</h2> <a id="a41c2c9766b53316eb96db2e0d42ac004"></a> <h2 class="memtitle"><span class="permalink"><a href="#a41c2c9766b53316eb96db2e0d42ac004">◆ </a></span>InstructionPointer()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">uint64_t crashpad::CPUContext::InstructionPointer </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div><div class="memdoc"> <p>Returns the instruction pointer value from the context structure. </p> <p>This is a CPU architecture-independent method that is capable of recovering the instruction pointer from any supported CPU architecture’s context structure. </p> </div> </div> <a id="a178339da11c9e4cc2037ed2298cf850f"></a> <h2 class="memtitle"><span class="permalink"><a href="#a178339da11c9e4cc2037ed2298cf850f">◆ </a></span>StackPointer()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">uint64_t crashpad::CPUContext::StackPointer </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div><div class="memdoc"> <p>Returns the stack pointer value from the context structure. </p> <p>This is a CPU architecture-independent method that is capable of recovering the stack pointer from any supported CPU architecture’s context structure. </p> </div> </div> <hr/>The documentation for this struct was generated from the following files:<ul> <li>snapshot/cpu_context.h</li> <li>snapshot/cpu_context.cc</li> </ul> </div><!-- contents --> <!-- start footer part --> <hr class="footer"/><address class="footer"><small> Generated by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/> </a> 1.8.13 </small></address> </body> </html>