| <!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::ScopedPtraceAttach 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&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&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_1ScopedPtraceAttach.html">ScopedPtraceAttach</a></li> </ul> |
| </div> |
| </div><!-- top --> |
| <div class="header"> |
| <div class="summary"> |
| <a href="#pub-methods">Public Member Functions</a> | |
| <a href="classcrashpad_1_1ScopedPtraceAttach-members.html">List of all members</a> </div> |
| <div class="headertitle"> |
| <div class="title">crashpad::ScopedPtraceAttach Class Reference</div> </div> |
| </div><!--header--> |
| <div class="contents"> |
| |
| <p>Maintains a <code>ptrace()</code> attachment to a process. |
| <a href="classcrashpad_1_1ScopedPtraceAttach.html#details">More...</a></p> |
| |
| <p><code>#include "util/linux/scoped_ptrace_attach.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:a4031744580d034b9ae3bd666b95daba6"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classcrashpad_1_1ScopedPtraceAttach.html#a4031744580d034b9ae3bd666b95daba6">Reset</a> ()</td></tr> |
| <tr class="memdesc:a4031744580d034b9ae3bd666b95daba6"><td class="mdescLeft"> </td><td class="mdescRight">Detaches from the process by calling <code>ptrace()</code>. <a href="classcrashpad_1_1ScopedPtraceAttach.html#a4031744580d034b9ae3bd666b95daba6">More...</a><br /></td></tr> |
| <tr class="separator:a4031744580d034b9ae3bd666b95daba6"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:acb458eaf43bcc917051e47f237876e73"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classcrashpad_1_1ScopedPtraceAttach.html#acb458eaf43bcc917051e47f237876e73">ResetAttach</a> (pid_t pid)</td></tr> |
| <tr class="memdesc:acb458eaf43bcc917051e47f237876e73"><td class="mdescLeft"> </td><td class="mdescRight">Detaches from any previously attached process, attaches to the process with process ID <em>pid</em>, and blocks until the target process has stopped by calling <code>waitpid()</code>. <a href="classcrashpad_1_1ScopedPtraceAttach.html#acb458eaf43bcc917051e47f237876e73">More...</a><br /></td></tr> |
| <tr class="separator:acb458eaf43bcc917051e47f237876e73"><td class="memSeparator" colspan="2"> </td></tr> |
| </table> |
| <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> |
| <div class="textblock"><p>Maintains a <code>ptrace()</code> attachment to a process. </p> |
| <p>On destruction, the process will be detached. </p> |
| </div><h2 class="groupheader">Member Function Documentation</h2> |
| <a id="a4031744580d034b9ae3bd666b95daba6"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#a4031744580d034b9ae3bd666b95daba6">◆ </a></span>Reset()</h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">bool crashpad::ScopedPtraceAttach::Reset </td> |
| <td>(</td> |
| <td class="paramname"></td><td>)</td> |
| <td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| <p>Detaches from the process by calling <code>ptrace()</code>. </p> |
| <dl class="section return"><dt>Returns</dt><dd><code>true</code> on success. <code>false</code> on failure, with a message logged. </dd></dl> |
| |
| </div> |
| </div> |
| <a id="acb458eaf43bcc917051e47f237876e73"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#acb458eaf43bcc917051e47f237876e73">◆ </a></span>ResetAttach()</h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">bool crashpad::ScopedPtraceAttach::ResetAttach </td> |
| <td>(</td> |
| <td class="paramtype">pid_t </td> |
| <td class="paramname"><em>pid</em></td><td>)</td> |
| <td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| <p>Detaches from any previously attached process, attaches to the process with process ID <em>pid</em>, and blocks until the target process has stopped by calling <code>waitpid()</code>. </p> |
| <dl class="section return"><dt>Returns</dt><dd><code>true</code> on success. <code>false</code> on failure, with a message logged. </dd></dl> |
| |
| </div> |
| </div> |
| <hr/>The documentation for this class was generated from the following files:<ul> |
| <li>util/linux/scoped_ptrace_attach.h</li> |
| <li>util/linux/scoped_ptrace_attach.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.18 |
| </small></address> |
| </body> |
| </html> |