|
Lines 1410-1416
Link Here
|
| 1410 |
|
1410 |
|
| 1411 |
<screen>&prompt.user; <userinput>gdb <replaceable>progname</replaceable></userinput></screen> |
1411 |
<screen>&prompt.user; <userinput>gdb <replaceable>progname</replaceable></userinput></screen> |
| 1412 |
|
1412 |
|
| 1413 |
<para>although most people prefer to run it inside |
1413 |
<para>although many people prefer to run it inside |
| 1414 |
<application>Emacs</application>. You can do this by:</para> |
1414 |
<application>Emacs</application>. You can do this by:</para> |
| 1415 |
|
1415 |
|
| 1416 |
<screen><userinput>M-x gdb RET <replaceable>progname</replaceable> RET</userinput></screen> |
1416 |
<screen><userinput>M-x gdb RET <replaceable>progname</replaceable> RET</userinput></screen> |
|
Lines 1430-1437
Link Here
|
| 1430 |
on a few of the basic commands.</para> |
1430 |
on a few of the basic commands.</para> |
| 1431 |
|
1431 |
|
| 1432 |
<para>Finally, if you find its text-based command-prompt style |
1432 |
<para>Finally, if you find its text-based command-prompt style |
| 1433 |
off-putting, there is a graphical front-end for it (<ulink |
1433 |
off-putting, there is a graphical front-end for it |
| 1434 |
url="&url.base;/ports/devel.html">xxgdb</ulink>) in the ports |
1434 |
(<filename role="package">devel/xxgdb</filename>) in the ports |
| 1435 |
collection.</para> |
1435 |
collection.</para> |
| 1436 |
|
1436 |
|
| 1437 |
<para>This section is intended to be an introduction to using |
1437 |
<para>This section is intended to be an introduction to using |
|
Lines 1456-1463
Link Here
|
| 1456 |
|
1456 |
|
| 1457 |
<para>At the <command>gdb</command> prompt, type |
1457 |
<para>At the <command>gdb</command> prompt, type |
| 1458 |
<userinput>break main</userinput>. This will tell the |
1458 |
<userinput>break main</userinput>. This will tell the |
| 1459 |
debugger to skip over the preliminary set-up code in the |
1459 |
debugger that you are not interested in watching the |
| 1460 |
program and start at the beginning of your code. Now type |
1460 |
preliminary set-up code in the program being run, and that it |
|
|
1461 |
should stop executing at the beginning of your code. Now type |
| 1461 |
<userinput>run</userinput> to start the program—it will |
1462 |
<userinput>run</userinput> to start the program—it will |
| 1462 |
start at the beginning of the set-up code and then get stopped |
1463 |
start at the beginning of the set-up code and then get stopped |
| 1463 |
by the debugger when it calls <function>main()</function>. |
1464 |
by the debugger when it calls <function>main()</function>. |
|
Lines 1757-1765
Link Here
|
| 1757 |
|
1758 |
|
| 1758 |
<para>And doubtless many more that I have overlooked.</para> |
1759 |
<para>And doubtless many more that I have overlooked.</para> |
| 1759 |
|
1760 |
|
| 1760 |
<para>Emacs can be installed on FreeBSD using <ulink |
1761 |
<para>Emacs can be installed on FreeBSD using |
| 1761 |
url="&url.base;/ports/editors.html">the Emacs |
1762 |
the <filename role="package">editors/emacs</filename> |
| 1762 |
port</ulink>.</para> |
1763 |
port.</para> |
| 1763 |
|
1764 |
|
| 1764 |
<para>Once it is installed, start it up and do <userinput>C-h |
1765 |
<para>Once it is installed, start it up and do <userinput>C-h |
| 1765 |
t</userinput> to read an Emacs tutorial—that means |
1766 |
t</userinput> to read an Emacs tutorial—that means |
|
Lines 2234-2240
Link Here
|
| 2234 |
<screen>&prompt.user; <userinput>find /usr/ports/lang/whizbang -name "*.el" -print</userinput></screen> |
2235 |
<screen>&prompt.user; <userinput>find /usr/ports/lang/whizbang -name "*.el" -print</userinput></screen> |
| 2235 |
|
2236 |
|
| 2236 |
<para>and install them by copying them into the Emacs site Lisp |
2237 |
<para>and install them by copying them into the Emacs site Lisp |
| 2237 |
directory. On FreeBSD 2.1.0-RELEASE, this is |
2238 |
directory. On FreeBSD 7.0-RELEASE, this is |
| 2238 |
<filename>/usr/local/share/emacs/site-lisp</filename>.</para> |
2239 |
<filename>/usr/local/share/emacs/site-lisp</filename>.</para> |
| 2239 |
|
2240 |
|
| 2240 |
<para>So for example, if the output from the find command |
2241 |
<para>So for example, if the output from the find command |