Debugging with GDB: Startup |
---|
Previous: Mode Options, Up: Invoking GDB [Contents][Index]
Here’s the description of what GDB does during session startup:
If you wish to disable the auto-loading during startup, you must do something like the following:
$ gdb -iex "set auto-load python-scripts off" myprogram
Option ‘-ex’ does not work because the auto-loading is then turned off too late.
Init files use the same syntax as command files (see Command Files) and are processed by GDB 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 Choosing Modes).
To display the list of init files loaded by gdb at startup, you can use gdb --help.
The GDB init files are normally called .gdbinit. The DJGPP port of GDB uses the name gdb.ini, due to the limitations of file names imposed by DOS filesystems. The Windows port of GDB uses the standard name, but if it finds a gdb.ini file in your home directory, it warns you about that and suggests to rename the file to the standard name.
On
DOS/Windows systems, the home directory is the one pointed to by the
HOME
environment variable.
Previous: Mode Options, Up: Invoking GDB [Contents][Index]