<ahref="#pub-methods">Public Member Functions</a>|
<ahref="classcrashpad_1_1test_1_1TestThreadSnapshot-members.html">List of all members</a></div>
<divclass="headertitle">
<divclass="title">crashpad::test::TestThreadSnapshot Class Reference<spanclass="mlabels"><spanclass="mlabel">final</span></span></div></div>
</div><!--header-->
<divclass="contents">
<p>A test <aclass="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 can carry arbitrary data for testing purposes.
<areahref="classcrashpad_1_1ThreadSnapshot.html"title="An abstract interface to a snapshot representing a thread (lightweight process) present in a snapshot..."alt="crashpad::ThreadSnapshot"shape="rect"coords="0,0,211,24"/>
<trclass="memdesc:a9703c478f207a285d732821be657b50f"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Obtains a pointer to the underlying mutable <aclass="el"href="structcrashpad_1_1CPUContext.html"title="A context structure capable of carrying the context of any supported CPU architecture. ">CPUContext</a> structure. <ahref="#a9703c478f207a285d732821be657b50f">More...</a><br/></td></tr>
<trclass="memdesc:a1db1c6ce49c283e763c666c3fbf5964a"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Sets the memory region to be returned by <aclass="el"href="classcrashpad_1_1test_1_1TestThreadSnapshot.html#a47ec986683a5aed362ecba9f092c61bf"title="Returns a MemorySnapshot object corresponding to the memory region that contains the thread’s stack...">Stack()</a>. <ahref="#a1db1c6ce49c283e763c666c3fbf5964a">More...</a><br/></td></tr>
<trclass="memdesc:a645715913a5fe095cba580836647ff0a"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Add a memory snapshot to be returned by <aclass="el"href="classcrashpad_1_1test_1_1TestThreadSnapshot.html#af49ca1418d7436492c49949f2fc73a31"title="Returns a vector of additional memory blocks that should be included in a minidump. ">ExtraMemory()</a>. <ahref="#a645715913a5fe095cba580836647ff0a">More...</a><br/></td></tr>
<trclass="memdesc:a3e5256fb87404928874cec4732cfb1df"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns a <aclass="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 thread’s CPU context. <ahref="#a3e5256fb87404928874cec4732cfb1df">More...</a><br/></td></tr>
<trclass="memdesc:a47ec986683a5aed362ecba9f092c61bf"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns a <aclass="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> object corresponding to the memory region that contains the thread’s stack, or <code>nullptr</code> if no stack region is available. <ahref="#a47ec986683a5aed362ecba9f092c61bf">More...</a><br/></td></tr>
<trclass="memdesc:aa7a31f691da452e9935c70c5e17901d9"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns the thread’s identifier. <ahref="#aa7a31f691da452e9935c70c5e17901d9">More...</a><br/></td></tr>
<trclass="memdesc:a67070917d0ea0d06845b345f63aa2a0e"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns the thread’s priority. <ahref="#a67070917d0ea0d06845b345f63aa2a0e">More...</a><br/></td></tr>
<trclass="memdesc:a7ce1aa33521d2499be131d273323caf0"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns the base address of a region used to store thread-specific data. <br/></td></tr>
<trclass="memdesc:af49ca1418d7436492c49949f2fc73a31"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns a vector of additional memory blocks that should be included in a minidump. <ahref="#af49ca1418d7436492c49949f2fc73a31">More...</a><br/></td></tr>
<divclass="textblock"><p>A test <aclass="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 can carry arbitrary data for testing purposes. </p>
</div><h2class="groupheader">Member Function Documentation</h2>
<p>Add a memory snapshot to be returned by <aclass="el"href="classcrashpad_1_1test_1_1TestThreadSnapshot.html#af49ca1418d7436492c49949f2fc73a31"title="Returns a vector of additional memory blocks that should be included in a minidump. ">ExtraMemory()</a>. </p>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">extra_memory</td><td>The memory snapshot that will be included in <aclass="el"href="classcrashpad_1_1test_1_1TestThreadSnapshot.html#af49ca1418d7436492c49949f2fc73a31"title="Returns a vector of additional memory blocks that should be included in a minidump. ">ExtraMemory()</a>. The <aclass="el"href="classcrashpad_1_1test_1_1TestThreadSnapshot.html"title="A test ThreadSnapshot that can carry arbitrary data for testing purposes. ">TestThreadSnapshot</a> object takes ownership of <em>extra_memory</em>. </td></tr>
<p>Returns a <aclass="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 thread’s CPU context. </p>
<p>The caller does not take ownership of this object, it is scoped to the lifetime of the <aclass="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>Returns a vector of additional memory blocks that should be included in a minidump. </p>
<dlclass="section return"><dt>Returns</dt><dd>A vector of <aclass="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 <aclass="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>Obtains a pointer to the underlying mutable <aclass="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 <aclass="el"href="structcrashpad_1_1CPUContext.html"title="A context structure capable of carrying the context of any supported CPU architecture. ">CPUContext</a> structure.</p>
<dlclass="section return"><dt>Returns</dt><dd>The same pointer that <aclass="el"href="classcrashpad_1_1test_1_1TestThreadSnapshot.html#a3e5256fb87404928874cec4732cfb1df"title="Returns a CPUContext object corresponding to the thread’s CPU context. ">Context()</a> does, while treating the data as mutable.</dd></dl>
<dlclass="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>
<p>Sets the memory region to be returned by <aclass="el"href="classcrashpad_1_1test_1_1TestThreadSnapshot.html#a47ec986683a5aed362ecba9f092c61bf"title="Returns a MemorySnapshot object corresponding to the memory region that contains the thread’s stack...">Stack()</a>. </p>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">stack</td><td>The memory region that <aclass="el"href="classcrashpad_1_1test_1_1TestThreadSnapshot.html#a47ec986683a5aed362ecba9f092c61bf"title="Returns a MemorySnapshot object corresponding to the memory region that contains the thread’s stack...">Stack()</a> will return. The <aclass="el"href="classcrashpad_1_1test_1_1TestThreadSnapshot.html"title="A test ThreadSnapshot that can carry arbitrary data for testing purposes. ">TestThreadSnapshot</a> object takes ownership of <em>stack</em>. </td></tr>
<p>Returns a <aclass="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> object corresponding to the memory region that contains the thread’s stack, or <code>nullptr</code> if no stack region is available. </p>
<p>The caller does not take ownership of this object, it is scoped to the lifetime of the <aclass="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>