Changeset View
Standalone View
en_US.ISO8859-1/books/developers-handbook/tools/chapter.xml
Show First 20 Lines • Show All 1,649 Lines • ▼ Show 20 Lines | |||||
} else { /* parent */ | } else { /* parent */ | ||||
<lineannotation>…</lineannotation></programlisting> | <lineannotation>…</lineannotation></programlisting> | ||||
<para>Now all that is needed is to attach to the child, set | <para>Now all that is needed is to attach to the child, set | ||||
<symbol>PauseMode</symbol> to <literal>0</literal> with | <symbol>PauseMode</symbol> to <literal>0</literal> with | ||||
<userinput>expr PauseMode = 0</userinput> and wait | <userinput>expr PauseMode = 0</userinput> and wait | ||||
for the <function>sleep()</function> call to return.</para> | for the <function>sleep()</function> call to return.</para> | ||||
</sect3> | </sect3> | ||||
<sect3> | |||||
<title>Remote Debugging Using LLDB</title> | |||||
<note> | |||||
<para>The described functionality is available starting with | |||||
bcr: s/FreeBSD/&os;/ | |||||
LLDB version 12.0.0 version. Users of &os; releases | |||||
Done Inline ActionsStatements like "not-yet-released" will quickly become obsolete in the documentation IMO, and we have to update it sometime again in the future. Is it possible to change it to time-irrelevant statements, that only mention the 12.0.0 version requirement as well as the available ports? ;) ygy: Statements like "not-yet-released" will quickly become obsolete in the documentation IMO, and… | |||||
Done Inline ActionsDo you mean that I should basically say '[...] is available since 12.0.0 version in LLDB. ', and then mention all the available ports? To be honest, I'm not sure how to do that precisely without having users search for version that's not there yet. mgorny_gentoo.org: Do you mean that I should basically say '[...] is available since 12.0.0 version in LLDB. '… | |||||
Done Inline Actions@ygy how about "...is available starting with LLDB versino 12.0.0. Users of FreeBSD releases containing an earlier LLDB version can use..." emaste: @ygy how about "...is available starting with LLDB versino 12.0.0. Users of FreeBSD releases… | |||||
Done Inline ActionsThis sounds much better to me, thanks! ygy: This sounds much better to me, thanks! | |||||
Done Inline Actions"...is available starting with LLDB version 12.0.0. Users of &os; releases containing an earlier LLDB version may wish to use the snapshot..." ^^ I meant this one. ;) ygy: "...is available starting with LLDB version 12.0.0. Users of &os; releases containing an… | |||||
ygyUnsubmitted Not Done Inline ActionsThere is an extra "version". ygy: There is an extra "version". | |||||
containing an earlier LLDB version may wish to use | |||||
the snapshot available in | |||||
<link xlink:href="&url.books.handbook;/ports-using.html"> | |||||
ports or packages</link>, as | |||||
<package>devel/llvm-devel</package>.</para> | |||||
</note> | |||||
<para>Starting with LLDB 12.0.0, remote debugging is supported | |||||
on &os;. This means that <command>lldb-server</command> | |||||
can be started to debug a program on one host, while | |||||
the interactive <command>lldb</command> client connects | |||||
to it from another one.</para> | |||||
<para>To launch a new process to be debugged remotely, run | |||||
<command>lldb-server</command> on the remote server | |||||
by typing</para> | |||||
<screen>&prompt.user; <userinput>lldb-server g <replaceable>host:port</replaceable> -- <replaceable>progname</replaceable></userinput></screen> | |||||
<para>The process will be stopped immediately after launching, | |||||
and <command>lldb-server</command> will wait for the client | |||||
to connect.</para> | |||||
<para>Start <command>lldb</command> locally and type | |||||
the following command to connect to the remote | |||||
server:</para> | |||||
<screen>(lldb) <userinput>gdb-remote <replaceable>host:port</replaceable></userinput></screen> | |||||
<para><command>lldb-server</command> can also attach to | |||||
a running process. To do that, type the following | |||||
on the remote server:</para> | |||||
<screen>&prompt.user; <userinput>lldb-server g <replaceable>host:port</replaceable> --attach <replaceable>pid-or-name</replaceable></userinput></screen> | |||||
</sect3> | |||||
</sect2> | </sect2> | ||||
<sect2> | <sect2> | ||||
<title>Using gdb</title> | <title>Using gdb</title> | ||||
<sect3> | <sect3> | ||||
<title>Starting gdb</title> | <title>Starting gdb</title> | ||||
▲ Show 20 Lines • Show All 898 Lines • Show Last 20 Lines |
s/FreeBSD/&os;/