blob: 66491a85fb86066cee7cb303deda93711cecff41 [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://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.18"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Crashpad: crashpad::test::TestExceptionSnapshot 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.18 -->
<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="namespacecrashpad_1_1test.html">test</a></li><li class="navelem"><a class="el" href="classcrashpad_1_1test_1_1TestExceptionSnapshot.html">TestExceptionSnapshot</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_1test_1_1TestExceptionSnapshot-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">crashpad::test::TestExceptionSnapshot Class Reference<span class="mlabels"><span class="mlabel">final</span></span></div> </div>
</div><!--header-->
<div class="contents">
<p>A test <a class="el" href="classcrashpad_1_1ExceptionSnapshot.html" title="An abstract interface to a snapshot representing an exception that a snapshot process sustained and t...">ExceptionSnapshot</a> that can carry arbitrary data for testing purposes.
<a href="classcrashpad_1_1test_1_1TestExceptionSnapshot.html#details">More...</a></p>
<p><code>#include &quot;snapshot/test/test_exception_snapshot.h&quot;</code></p>
<div class="dynheader">
Inheritance diagram for crashpad::test::TestExceptionSnapshot:</div>
<div class="dyncontent">
<div class="center">
<img src="classcrashpad_1_1test_1_1TestExceptionSnapshot.png" usemap="#crashpad::test::TestExceptionSnapshot_map" alt=""/>
<map id="crashpad::test::TestExceptionSnapshot_map" name="crashpad::test::TestExceptionSnapshot_map">
<area href="classcrashpad_1_1ExceptionSnapshot.html" title="An abstract interface to a snapshot representing an exception that a snapshot process sustained and t..." alt="crashpad::ExceptionSnapshot" shape="rect" coords="0,0,226,24"/>
</map>
</div></div>
<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:a420112342e12f9b96c1d7748627ea56d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structcrashpad_1_1CPUContext.html">CPUContext</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcrashpad_1_1test_1_1TestExceptionSnapshot.html#a420112342e12f9b96c1d7748627ea56d">MutableContext</a> ()</td></tr>
<tr class="memdesc:a420112342e12f9b96c1d7748627ea56d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Obtains a pointer to the underlying mutable <a class="el" href="structcrashpad_1_1CPUContext.html" title="A context structure capable of carrying the context of any supported CPU architecture.">CPUContext</a> structure. <a href="classcrashpad_1_1test_1_1TestExceptionSnapshot.html#a420112342e12f9b96c1d7748627ea56d">More...</a><br /></td></tr>
<tr class="separator:a420112342e12f9b96c1d7748627ea56d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a64967e4481cc77ed1125752ee8ad771d"><td class="memItemLeft" align="right" valign="top"><a id="a64967e4481cc77ed1125752ee8ad771d"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>SetThreadID</b> (uint64_t thread_id)</td></tr>
<tr class="separator:a64967e4481cc77ed1125752ee8ad771d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a41f1be79312214e0ecdf64ad0eb40ff9"><td class="memItemLeft" align="right" valign="top"><a id="a41f1be79312214e0ecdf64ad0eb40ff9"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>SetException</b> (uint32_t exception)</td></tr>
<tr class="separator:a41f1be79312214e0ecdf64ad0eb40ff9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acaa11c2932f7a9487e42cb5f67705bbf"><td class="memItemLeft" align="right" valign="top"><a id="acaa11c2932f7a9487e42cb5f67705bbf"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>SetExceptionInfo</b> (uint32_t exception_information)</td></tr>
<tr class="separator:acaa11c2932f7a9487e42cb5f67705bbf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a30f4e29b28618cb0880d8c61d92da93b"><td class="memItemLeft" align="right" valign="top"><a id="a30f4e29b28618cb0880d8c61d92da93b"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>SetExceptionAddress</b> (uint64_t exception_address)</td></tr>
<tr class="separator:a30f4e29b28618cb0880d8c61d92da93b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac7ef269c5848ece5ded38c1ef00179f4"><td class="memItemLeft" align="right" valign="top"><a id="ac7ef269c5848ece5ded38c1ef00179f4"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>SetCodes</b> (const std::vector&lt; uint64_t &gt; &amp;codes)</td></tr>
<tr class="separator:ac7ef269c5848ece5ded38c1ef00179f4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a735a808658b12b925f4102462063a222"><td class="memItemLeft" align="right" valign="top"><a id="a735a808658b12b925f4102462063a222"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>AddExtraMemory</b> (std::unique_ptr&lt; <a class="el" href="classcrashpad_1_1MemorySnapshot.html">MemorySnapshot</a> &gt; extra_memory)</td></tr>
<tr class="separator:a735a808658b12b925f4102462063a222"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae199229ad7ab258d823fcb86cae9bd17"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="structcrashpad_1_1CPUContext.html">CPUContext</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcrashpad_1_1test_1_1TestExceptionSnapshot.html#ae199229ad7ab258d823fcb86cae9bd17">Context</a> () const override</td></tr>
<tr class="memdesc:ae199229ad7ab258d823fcb86cae9bd17"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a <a class="el" href="structcrashpad_1_1CPUContext.html" title="A context structure capable of carrying the context of any supported CPU architecture.">CPUContext</a> object corresponding to the exception thread’s CPU context at the time of the exception. <a href="classcrashpad_1_1test_1_1TestExceptionSnapshot.html#ae199229ad7ab258d823fcb86cae9bd17">More...</a><br /></td></tr>
<tr class="separator:ae199229ad7ab258d823fcb86cae9bd17"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a94d06ac7c4022fbff1acd2c37cb85e54"><td class="memItemLeft" align="right" valign="top">uint64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcrashpad_1_1test_1_1TestExceptionSnapshot.html#a94d06ac7c4022fbff1acd2c37cb85e54">ThreadID</a> () const override</td></tr>
<tr class="memdesc:a94d06ac7c4022fbff1acd2c37cb85e54"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the thread identifier of the thread that triggered the exception. <a href="classcrashpad_1_1test_1_1TestExceptionSnapshot.html#a94d06ac7c4022fbff1acd2c37cb85e54">More...</a><br /></td></tr>
<tr class="separator:a94d06ac7c4022fbff1acd2c37cb85e54"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afa83c6fa95e27e90b29f0b537c561094"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcrashpad_1_1test_1_1TestExceptionSnapshot.html#afa83c6fa95e27e90b29f0b537c561094">Exception</a> () const override</td></tr>
<tr class="memdesc:afa83c6fa95e27e90b29f0b537c561094"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the top-level exception code identifying the exception. <a href="classcrashpad_1_1test_1_1TestExceptionSnapshot.html#afa83c6fa95e27e90b29f0b537c561094">More...</a><br /></td></tr>
<tr class="separator:afa83c6fa95e27e90b29f0b537c561094"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a28c1706545fcac448a770e09341d92ea"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcrashpad_1_1test_1_1TestExceptionSnapshot.html#a28c1706545fcac448a770e09341d92ea">ExceptionInfo</a> () const override</td></tr>
<tr class="memdesc:a28c1706545fcac448a770e09341d92ea"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the second-level exception code identifying the exception. <a href="classcrashpad_1_1test_1_1TestExceptionSnapshot.html#a28c1706545fcac448a770e09341d92ea">More...</a><br /></td></tr>
<tr class="separator:a28c1706545fcac448a770e09341d92ea"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa770edbae31d5d00af25d1101a1ca51d"><td class="memItemLeft" align="right" valign="top">uint64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcrashpad_1_1test_1_1TestExceptionSnapshot.html#aa770edbae31d5d00af25d1101a1ca51d">ExceptionAddress</a> () const override</td></tr>
<tr class="memdesc:aa770edbae31d5d00af25d1101a1ca51d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the address that triggered the exception. <a href="classcrashpad_1_1test_1_1TestExceptionSnapshot.html#aa770edbae31d5d00af25d1101a1ca51d">More...</a><br /></td></tr>
<tr class="separator:aa770edbae31d5d00af25d1101a1ca51d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afd83da0b687967809bbe2bb663b57298"><td class="memItemLeft" align="right" valign="top">const std::vector&lt; uint64_t &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcrashpad_1_1test_1_1TestExceptionSnapshot.html#afd83da0b687967809bbe2bb663b57298">Codes</a> () const override</td></tr>
<tr class="memdesc:afd83da0b687967809bbe2bb663b57298"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a series of operating system-specific exception codes. <a href="classcrashpad_1_1test_1_1TestExceptionSnapshot.html#afd83da0b687967809bbe2bb663b57298">More...</a><br /></td></tr>
<tr class="separator:afd83da0b687967809bbe2bb663b57298"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7b4aaefa471d5c0fde691e26ec7439a8"><td class="memItemLeft" align="right" valign="top">std::vector&lt; const <a class="el" href="classcrashpad_1_1MemorySnapshot.html">MemorySnapshot</a> * &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcrashpad_1_1test_1_1TestExceptionSnapshot.html#a7b4aaefa471d5c0fde691e26ec7439a8">ExtraMemory</a> () const override</td></tr>
<tr class="memdesc:a7b4aaefa471d5c0fde691e26ec7439a8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a vector of additional memory blocks that should be included in a minidump. <a href="classcrashpad_1_1test_1_1TestExceptionSnapshot.html#a7b4aaefa471d5c0fde691e26ec7439a8">More...</a><br /></td></tr>
<tr class="separator:a7b4aaefa471d5c0fde691e26ec7439a8"><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 test <a class="el" href="classcrashpad_1_1ExceptionSnapshot.html" title="An abstract interface to a snapshot representing an exception that a snapshot process sustained and t...">ExceptionSnapshot</a> that can carry arbitrary data for testing purposes. </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="afd83da0b687967809bbe2bb663b57298"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afd83da0b687967809bbe2bb663b57298">&#9670;&nbsp;</a></span>Codes()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">const std::vector&lt; uint64_t &gt; &amp; crashpad::test::TestExceptionSnapshot::Codes </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns a series of operating system-specific exception codes. </p>
<p>The precise interpretation of these codes is specific to the snapshot operating system. These codes may provide a duplicate of information available elsewhere, they may extend information available elsewhere, or they may not be present at all. In this case, an empty vector will be returned.</p>
<p>For macOS, this will be a vector containing the original exception type and the values of <code>code[0]</code> and <code>code[1]</code> as received by a Mach exception handler.</p>
<p>For Windows, these are additional arguments (if any) as provided to <code>RaiseException()</code>. See the documentation for <code><a class="el" href="structcrashpad_1_1ExceptionInformation.html" title="Structure read out of the client process by the crash handler when an exception occurs.">ExceptionInformation</a></code> in <code>EXCEPTION_RECORD</code>. </p>
<p>Implements <a class="el" href="classcrashpad_1_1ExceptionSnapshot.html#a1b98ff58b73e105c39ccba39dad5a2d7">crashpad::ExceptionSnapshot</a>.</p>
</div>
</div>
<a id="ae199229ad7ab258d823fcb86cae9bd17"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae199229ad7ab258d823fcb86cae9bd17">&#9670;&nbsp;</a></span>Context()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">const <a class="el" href="structcrashpad_1_1CPUContext.html">CPUContext</a> * crashpad::test::TestExceptionSnapshot::Context </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns a <a class="el" href="structcrashpad_1_1CPUContext.html" title="A context structure capable of carrying the context of any supported CPU architecture.">CPUContext</a> object corresponding to the exception thread’s CPU context at the time of the exception. </p>
<p>The caller does not take ownership of this object, it is scoped to the lifetime of the <a class="el" href="classcrashpad_1_1ThreadSnapshot.html" title="An abstract interface to a snapshot representing a thread (lightweight process) present in a snapshot...">ThreadSnapshot</a> object that it was obtained from. </p>
<p>Implements <a class="el" href="classcrashpad_1_1ExceptionSnapshot.html#a9ba62f24e17805f436feda32c01f353e">crashpad::ExceptionSnapshot</a>.</p>
</div>
</div>
<a id="afa83c6fa95e27e90b29f0b537c561094"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afa83c6fa95e27e90b29f0b537c561094">&#9670;&nbsp;</a></span>Exception()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">uint32_t crashpad::test::TestExceptionSnapshot::Exception </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns the top-level exception code identifying the exception. </p>
<p>This is an operating system-specific value.</p>
<p>For macOS, this will be an <a class="el" href="mach_8h.html#EXC_x">EXC_*</a> exception type, such as <code>EXC_BAD_ACCESS</code>. <code>EXC_CRASH</code> will not appear here for exceptions processed as <code>EXC_CRASH</code> when generated from another preceding exception: the original exception code will appear instead. The exception type as it was received will appear at index 0 of <a class="el" href="classcrashpad_1_1test_1_1TestExceptionSnapshot.html#afd83da0b687967809bbe2bb663b57298" title="Returns a series of operating system-specific exception codes.">Codes()</a>.</p>
<p>For Windows, this will be an <code>EXCEPTION_*</code> exception type, such as <code>EXCEPTION_ACCESS_VIOLATION</code>. </p>
<p>Implements <a class="el" href="classcrashpad_1_1ExceptionSnapshot.html#af73f1ae2f0572a10bd1b62dee1472607">crashpad::ExceptionSnapshot</a>.</p>
</div>
</div>
<a id="aa770edbae31d5d00af25d1101a1ca51d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa770edbae31d5d00af25d1101a1ca51d">&#9670;&nbsp;</a></span>ExceptionAddress()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">uint64_t crashpad::test::TestExceptionSnapshot::ExceptionAddress </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns the address that triggered the exception. </p>
<p>This may be the address that caused a fault on data access, or it may be the instruction pointer that contained an offending instruction. For exceptions where this value cannot be determined, it will be <code>0</code>.</p>
<p>For macOS, this will be the value of the exception code at index 1 as received by a Mach exception handler. </p>
<p>Implements <a class="el" href="classcrashpad_1_1ExceptionSnapshot.html#a12bf01b499037e2ad642d5e131f23f86">crashpad::ExceptionSnapshot</a>.</p>
</div>
</div>
<a id="a28c1706545fcac448a770e09341d92ea"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a28c1706545fcac448a770e09341d92ea">&#9670;&nbsp;</a></span>ExceptionInfo()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">uint32_t crashpad::test::TestExceptionSnapshot::ExceptionInfo </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns the second-level exception code identifying the exception. </p>
<p>This is an operating system-specific value.</p>
<p>For macOS, this will be the value of the exception code at index 0 as received by a Mach exception handler, except:</p><ul>
<li>For <code>EXC_CRASH</code> exceptions generated from another preceding exception, the original exception code will appear here, not the code as received by the Mach exception handler.</li>
<li>For <code>EXC_RESOURCE</code> and <code>EXC_GUARD</code> exceptions, the high 32 bits of the exception code at index 0 will appear here.</li>
</ul>
<p>In all cases on macOS, the full exception code at index 0 as it was received will appear at index 1 of <a class="el" href="classcrashpad_1_1test_1_1TestExceptionSnapshot.html#afd83da0b687967809bbe2bb663b57298" title="Returns a series of operating system-specific exception codes.">Codes()</a>.</p>
<p>On Windows, this will either be <code>0</code> if the exception is continuable, or <code>EXCEPTION_NONCONTINUABLE</code> to indicate a noncontinuable exception. </p>
<p>Implements <a class="el" href="classcrashpad_1_1ExceptionSnapshot.html#ae1c97187c37fa378252415f7f3b4e6cb">crashpad::ExceptionSnapshot</a>.</p>
</div>
</div>
<a id="a7b4aaefa471d5c0fde691e26ec7439a8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7b4aaefa471d5c0fde691e26ec7439a8">&#9670;&nbsp;</a></span>ExtraMemory()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">std::vector&lt; const <a class="el" href="classcrashpad_1_1MemorySnapshot.html">MemorySnapshot</a> * &gt; crashpad::test::TestExceptionSnapshot::ExtraMemory </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns a vector of additional memory blocks that should be included in a minidump. </p>
<dl class="section return"><dt>Returns</dt><dd>A vector of <a class="el" href="classcrashpad_1_1MemorySnapshot.html" title="An abstract interface to a snapshot representing a region of memory present in a snapshot process.">MemorySnapshot</a> objects that will be included in the crash dump. The caller does not take ownership of these objects, they are scoped to the lifetime of the <a class="el" href="classcrashpad_1_1ThreadSnapshot.html" title="An abstract interface to a snapshot representing a thread (lightweight process) present in a snapshot...">ThreadSnapshot</a> object that they were obtained from. </dd></dl>
<p>Implements <a class="el" href="classcrashpad_1_1ExceptionSnapshot.html#a85e992db62e56bc47242a186b94208f4">crashpad::ExceptionSnapshot</a>.</p>
</div>
</div>
<a id="a420112342e12f9b96c1d7748627ea56d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a420112342e12f9b96c1d7748627ea56d">&#9670;&nbsp;</a></span>MutableContext()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="structcrashpad_1_1CPUContext.html">CPUContext</a>* crashpad::test::TestExceptionSnapshot::MutableContext </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Obtains a pointer to the underlying mutable <a class="el" href="structcrashpad_1_1CPUContext.html" title="A context structure capable of carrying the context of any supported CPU architecture.">CPUContext</a> structure. </p>
<p>This method is intended to be used by callers to populate the <a class="el" href="structcrashpad_1_1CPUContext.html" title="A context structure capable of carrying the context of any supported CPU architecture.">CPUContext</a> structure.</p>
<dl class="section return"><dt>Returns</dt><dd>The same pointer that <a class="el" href="classcrashpad_1_1test_1_1TestExceptionSnapshot.html#ae199229ad7ab258d823fcb86cae9bd17" title="Returns a CPUContext object corresponding to the exception thread’s CPU context at the time of the ex...">Context()</a> does, while treating the data as mutable.</dd></dl>
<dl class="section attention"><dt>Attention</dt><dd>This returns a non-<code>const</code> pointer to this object’s private data so that a caller can populate the context structure directly. This is done because providing setter interfaces to each field in the context structure would be unwieldy and cumbersome. Care must be taken to populate the context structure correctly. </dd></dl>
</div>
</div>
<a id="a94d06ac7c4022fbff1acd2c37cb85e54"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a94d06ac7c4022fbff1acd2c37cb85e54">&#9670;&nbsp;</a></span>ThreadID()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">uint64_t crashpad::test::TestExceptionSnapshot::ThreadID </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns the thread identifier of the thread that triggered the exception. </p>
<p>This value can be compared to <a class="el" href="classcrashpad_1_1ThreadSnapshot.html#a3c953575fadb934cd5f163560df149da" title="Returns the thread’s identifier.">ThreadSnapshot::ThreadID()</a> to associate an <a class="el" href="classcrashpad_1_1ExceptionSnapshot.html" title="An abstract interface to a snapshot representing an exception that a snapshot process sustained and t...">ExceptionSnapshot</a> object with the <a class="el" href="classcrashpad_1_1ThreadSnapshot.html" title="An abstract interface to a snapshot representing a thread (lightweight process) present in a snapshot...">ThreadSnapshot</a> that contains a snapshot of the thread that triggered the exception. </p>
<p>Implements <a class="el" href="classcrashpad_1_1ExceptionSnapshot.html#aef11b2d8ffb00bb38688e09c0b62ac51">crashpad::ExceptionSnapshot</a>.</p>
</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>snapshot/test/test_exception_snapshot.h</li>
<li>snapshot/test/test_exception_snapshot.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.18
</small></address>
</body>
</html>