Initial bulk commit for "Git on MSys"
[msysgit/historical-msysgit.git] / mingw / info / gdb / Working-Directory.html
blobea9dd3e19884d83da0a579ee88f089daab1c0083
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="Working%20Directory">Working Directory</a>,
13 Next:<a rel="next" accesskey="n" href="Input-Output.html#Input%2fOutput">Input/Output</a>,
14 Previous:<a rel="previous" accesskey="p" href="Environment.html#Environment">Environment</a>,
15 Up:<a rel="up" accesskey="u" href="Running.html#Running">Running</a>
16 <hr><br>
17 </div>
19 <h3 class="section">Your program's working directory</h3>
21 <p>Each time you start your program with <code>run</code>, it inherits its
22 working directory from the current working directory of GDB.
23 The GDB working directory is initially whatever it inherited
24 from its parent process (typically the shell), but you can specify a new
25 working directory in GDB with the <code>cd</code> command.
27 <p>The GDB working directory also serves as a default for the commands
28 that specify files for GDB to operate on. See <a href="Files.html#Files">Commands to specify files</a>.
30 <dl>
31 <dt><code>cd </code><var>directory</var><code></code>
32 <dd>Set the GDB working directory to <var>directory</var>.
34 <br><dt><code>pwd</code>
35 <dd>Print the GDB working directory.
36 </dl>
38 </body></html>