Skip to content

Commit

Permalink
basic_c: Leave default options for gdb
Browse files Browse the repository at this point in the history
The text suggest to use certain options for `gdb` but doesn't
make clear that those are defaults for author's operating
system.  The reader's defaults options are very likely to be
more suitable to use.
  • Loading branch information
Krzysztof Konopko authored and Krzysztof Konopko committed Feb 16, 2013
1 parent bd1b730 commit 168be2c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion basic_c.haml
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,9 @@ changes.
.do
`M-x gdb`. When prompted for the command-line to use, specify the program
`examples/rl` as an argument to `gdb`: if you're in the `readline/examples`
directory, the command-line will look like `gdb ‑‑annotate=3 ./rl`.
directory, the command-line will look like `gdb ‑‑annotate=3 ./rl`. The default
options for `gdb` may differ on your system so you may want to use them
instead.

You are now running `gdb` inside Emacs, so the standard `gdb` commands apply.
Let's set a breakpoint in the `readline` function, start the `rl` program, and
Expand Down
6 changes: 4 additions & 2 deletions basic_c.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<h1>How to learn Emacs</h1>
<p>By <a href="http://david.rothlis.net">David Röthlisberger</a>.<br/>
Comments welcome at <a href="&#x6d;&#x61;&#x69;&#108;&#x74;&#x6f;&#x3a;&#100;&#97;&#118;&#105;&#x64;&#64;&#x72;&#x6f;&#116;&#x68;&#x6c;&#105;&#115;&#46;&#110;&#x65;&#x74;?subject=How%20to%20learn%20Emacs">&#100;&#97;&#x76;&#x69;&#x64;&#64;&#114;&#111;&#x74;&#x68;&#x6c;&#x69;&#x73;&#46;&#x6e;&#x65;&#x74;</a>.<br/>
Last updated 16 Nov 2012.</p>
Last updated 16 Feb 2013.</p>
</div>
<div id='toc'>
<!-- Table of Contents -->
Expand Down Expand Up @@ -535,7 +535,9 @@ <h2 id='gdb'>gdb</h2>
<div class='do'>
<p><code><a class='glossary' href='glossary.html#keys'>M-x gdb</a></code>. When prompted for the command-line to use, specify the program
<code>examples/rl</code> as an argument to <code>gdb</code>: if you&rsquo;re in the <code>readline/examples</code>
directory, the command-line will look like <code>gdb ‑‑annotate=3 ./rl</code>.</p>
directory, the command-line will look like <code>gdb ‑‑annotate=3 ./rl</code>. The default
options for <code>gdb</code> may differ on your system so you may want to use them
instead.</p>
</div>
<p>You are now running <code>gdb</code> inside Emacs, so the standard <code>gdb</code> commands apply.
Let&rsquo;s set a breakpoint in the <code>readline</code> function, start the <code>rl</code> program, and
Expand Down

0 comments on commit 168be2c

Please sign in to comment.