Changed encoding to UTF-8.
[kdbg.git] / kdbg / doc / en / argspwdenv.html
blob2cc8564fc2133fe0b9a740d2e90903bd8c3ea338
1 <!doctype html public "-//w3c//dtd html 4.0 transitional//en">
2 <html>
3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
5 <meta name="GENERATOR" content="Mozilla/4.74 [en] (X11; U; Linux 2.2.16-SMP i686) [Netscape]">
6 <meta name="Author" content="Johannes Sixt">
7 <title>KDbg - User's Manual - Arguments, Environment</title>
8 </head>
9 <body text="#000000" bgcolor="#FFFFFF" link="#0000EF" vlink="#51188E" alink="#FF0000">
10 <a href="index.html">Contents</a>
11 <h1>
12 Specifying program arguments, working directory, environment variables</h1>
13 Choose <i>Execution|Arguments</i> to open a dialog where you can set program
14 arguments, the working directory for your program, and environment variables.
15 <h2>
16 <a NAME="PgmArgs"></a>Program Arguments</h2>
17 In the top edit box enter the arguments that shall be passed on to your
18 program. Next time the program is started, the new arguments will be used.
19 <h2>
20 <a NAME="WorkingDir"></a>Working directory</h2>
21 In the edit box below you can specify the working directory for your program.
22 Your program will use the new directory only when it is run the next time.
23 <p>The working directory also applies to gdb itself! The directory that
24 you specify will be passed to gdb immediately, i.e. gdb will work with
25 the new setting as soon as you press <i>OK</i>. This can influence whether
26 source code files are found.
27 <h2>
28 <a NAME="Environment"></a>Environment variables</h2>
29 In the environment variables section type in an expression of the form
30 <tt>VARIABLE=value</tt>
31 to set the environment variable <tt>VARIABLE</tt> to the value <tt>value</tt>,
32 and click <i>Modify</i>. To remove a variable, select it from the list
33 below and click <i>Remove</i>. To change the value, edit the value in the
34 edit field and click <i>Modify</i>. If you change the name of the variable
35 and click <i>Modify</i>, you add a new variable! The new environment variables
36 will be used by your program the next time it is run.
37 <p>An important environment variable to set if you are using glibc2 on
38 Linux is <tt>LD_BIND_NOW</tt>. It is very important that you set this variable
39 to <tt>1</tt> for all your debugging sessions. If it is not set, gdb cannot
40 step into and out of system functions that are imported from the shared
41 <tt>libc</tt>
42 and other libraries.
43 </body>
44 </html>