Initial bulk commit for "Git on MSys"
[msysgit/historical-msysgit.git] / mingw / info / gdb / Prompt.html
blobf632fdc4b04b9e5b3a5ca9e978451946327caf64
1 <html lang="en">
2 <head>
3 <title>Debugging with GDB</title>
4 <meta http-equiv="Content-Type" content="text/html">
5 <meta name="description" content="Debugging with GDB">
6 <meta name="generator" content="makeinfo 4.3">
7 <link href="http://www.gnu.org/software/texinfo/" rel="generator-home">
8 </head>
9 <body>
10 <div class="node">
11 <p>
12 Node:<a name="Prompt">Prompt</a>,
13 Next:<a rel="next" accesskey="n" href="Editing.html#Editing">Editing</a>,
14 Up:<a rel="up" accesskey="u" href="Controlling-GDB.html#Controlling%20GDB">Controlling GDB</a>
15 <hr><br>
16 </div>
18 <h3 class="section">Prompt</h3>
20 GDB indicates its readiness to read a command by printing a string
21 called the <dfn>prompt</dfn>. This string is normally <code>(gdb)</code>. You
22 can change the prompt string with the <code>set prompt</code> command. For
23 instance, when debugging GDB with GDB, it is useful to change
24 the prompt in one of the GDB sessions so that you can always tell
25 which one you are talking to.
27 <p><em>Note:</em> <code>set prompt</code> does not add a space for you after the
28 prompt you set. This allows you to set a prompt which ends in a space
29 or a prompt that does not.
31 <dl>
32 <dt><code>set prompt </code><var>newprompt</var><code></code>
33 <dd>Directs GDB to use <var>newprompt</var> as its prompt string henceforth.
35 <br><dt><code>show prompt</code>
36 <dd>Prints a line of the form: <code>Gdb's prompt is: </code><var>your-prompt</var><code></code>
37 </dl>
39 </body></html>