Contents

The Program Settings Dialog

In this dialog, program specific settings can be selected. It is invoked by Settings|This Program. The settings apply only to the currently loaded executable and will be saved across sessions.

Important note: The chosen settings will only apply the next time the executable is loaded into KDbg. This means that after pressing OK in this dialog, you must reload the executable using File|Recent Executables!!

Debugger

In this section, the debugger to be used for the program can be chosen.

How to invoke GDB

Enter the command to invoke gdb. Leave this field empty to use the default gdb command as specified in the global options. When you are cross-compiling and remote-debugging, you will probably want to use a different gdb suitable for the target platform. The default command is gdb --fullname --nx. Be sure to specify at least --fullname if you change the gdb command. If you remove this command switch, KDbg will not work.

Output

In this section, the terminal emulation under which the program will run can be selected.

No input and output

Check this option if your program does not receive input from the terminal and you do not want to see the output that the program writes to stdout and stderr (if any). All three standard channels (stdin, stdout, and stderr) are effectively redirected to /dev/null.

Only output, simple terminal emulation

Check this option if your program does not receive input from the terminal (stdin will be redirected to /dev/null), and the output that it writes to stdout and stderr does not require sophisticated terminal emulation. The output will be shown in the Output window.

Full terminal emulation

Check this option if your program reads input from stdin or if the output to stdout or stderr requires terminal emulation. A terminal emulator will be invoked as specified in the global options.