<trclass="memdesc:abd1431ec88983c9d1a6282e622e32d65"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Constructs this object with a pre-determined bitness. <ahref="#abd1431ec88983c9d1a6282e622e32d65">More...</a><br/></td></tr>
<trclass="memdesc:a73a6d58c4e265a88079e009ad511adfe"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Constructs this object without a pre-determined bitness. <ahref="#a73a6d58c4e265a88079e009ad511adfe">More...</a><br/></td></tr>
<trclass="memdesc:a110b2dba5079e93ff13230b2f6a51e9c"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Initializes this object to the bitness of the process whose process ID is <em>pid</em>. <ahref="#a110b2dba5079e93ff13230b2f6a51e9c">More...</a><br/></td></tr>
<trclass="memdesc:a099fd87be8696988f4f54072b0aad564"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Return <code>true</code> if this object is configured for 64-bit. <br/></td></tr>
<trclass="memdesc:ae6b7f81ee593a72d38789e890f5abd1d"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Uses <code>ptrace</code> to collect information about the thread with thread ID <em>tid</em>. <ahref="#ae6b7f81ee593a72d38789e890f5abd1d">More...</a><br/></td></tr>
<trclass="memdesc:ab5e3c4efe6d3a06ea6abdf60fec2747f"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Uses <code>ptrace</code> to read memory from the process with process ID <em>pid</em>, up to a maximum number of bytes. <ahref="#ab5e3c4efe6d3a06ea6abdf60fec2747f">More...</a><br/></td></tr>
<divclass="textblock"><p>Provides an architecturally agnostic interface for collecting information with <code>ptrace</code>. </p>
<p>A ptracer is configured for a particular bitness. It is an error to make any calls via this object against a thread whose bitness does not match the bitness this object was initialized with. </p>
</div><h2class="groupheader">Constructor & Destructor Documentation</h2>
<p><aclass="el"href="classcrashpad_1_1Ptracer.html#a110b2dba5079e93ff13230b2f6a51e9c"title="Initializes this object to the bitness of the process whose process ID is pid. ">Initialize()</a> must be successfully called before making any other calls on this object.</p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">can_log</td><td>Whether methods in this class can log error messages. </td></tr>
<p>Uses <code>ptrace</code> to collect information about the thread with thread ID <em>tid</em>. </p>
<p>The target thread should be attached before calling this method. </p><dlclass="section see"><dt>See also</dt><dd><aclass="el"href="classcrashpad_1_1ScopedPtraceAttach.html"title="Maintains a ptrace() attachment to a process. ">ScopedPtraceAttach</a></dd></dl>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">tid</td><td>The thread ID of the thread to collect information for. </td></tr>
<tr><tdclass="paramdir">[out]</td><tdclass="paramname">info</td><td>A <aclass="el"href="structcrashpad_1_1ThreadInfo.html"title="A collection of ptrace-able information about a thread. ">ThreadInfo</a> for the thread. </td></tr>
<dlclass="section return"><dt>Returns</dt><dd><code>true</code> on success. <code>false</code> on failure with a message logged, if enabled. </dd></dl>
<dlclass="section return"><dt>Returns</dt><dd><code>true</code> on success. <code>false</code> on failure with a message logged, if enabled. </dd></dl>
<p>Uses <code>ptrace</code> to read memory from the process with process ID <em>pid</em>, up to a maximum number of bytes. </p>
<p>The target process should already be attached before calling this method. </p><dlclass="section see"><dt>See also</dt><dd><aclass="el"href="classcrashpad_1_1ScopedPtraceAttach.html"title="Maintains a ptrace() attachment to a process. ">ScopedPtraceAttach</a></dd></dl>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">pid</td><td>The process ID whose memory to read. </td></tr>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">address</td><td>The base address of the region to read. </td></tr>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">size</td><td>The size of the memory region to read. <em>buffer</em> must be at least this size. </td></tr>
<tr><tdclass="paramdir">[out]</td><tdclass="paramname">buffer</td><td>The buffer to fill with the data read. </td></tr>
</table>
</dd>
</dl>
<dlclass="section return"><dt>Returns</dt><dd>the number of bytes read, 0 if there are no more bytes to read, or -1 on failure with a message logged if logging is enabled. </dd></dl>