manpagez: man pages & more
info gdb
Home | html | info | man
[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

2.1.3 What No value for GDBN Does During Startup

Here's the description of what No value for GDBN does during session startup:

  1. Sets up the command interpreter as specified by the command line (see section interpreter).
  2. Reads the init file (if any) in your home directory(1) and executes all the commands in that file.
  3. Processes command line options and operands.
  4. Reads and executes the commands from init file (if any) in the current working directory. This is only done if the current directory is different from your home directory. Thus, you can have more than one init file, one generic in your home directory, and another, specific to the program you are debugging, in the directory where you invoke No value for GDBN.
  5. Reads command files specified by the ‘-x’ option. See section Command Files, for more details about No value for GDBN command files.
  6. Reads the command history recorded in the history file. See section Command History, for more details about the command history and the files where No value for GDBN records it.

Init files use the same syntax as command files (see section Command Files) and are processed by No value for GDBN in the same way. The init file in your home directory can set options (such as ‘set complaints’) that affect subsequent processing of command line options and operands. Init files are not executed if you use the ‘-nx’ option (see section Choosing Modes).

The No value for GDBN init files are normally called ‘.gdbinit’. The DJGPP port of No value for GDBN uses the name ‘gdb.ini’, due to the limitations of file names imposed by DOS filesystems. The Windows ports of No value for GDBN use the standard name, but if they find a ‘gdb.ini’ file, they warn you about that and suggest to rename the file to the standard name.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]
© manpagez.com 2000-2017
Individual documents may contain additional copyright information.