diff options
author | Doug Evans <dje@google.com> | 2012-10-15 21:45:04 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2012-10-15 21:45:04 +0000 |
commit | 07540c156d053380cda0aca5b137a7f5ef0e0e24 (patch) | |
tree | f634bfea9180c211e4ece0fec40da95a08aab8ca /gdb/doc | |
parent | eab09350a37d669c13aaccf621c9e22b7776a3be (diff) | |
download | fsf-binutils-gdb-07540c156d053380cda0aca5b137a7f5ef0e0e24.zip fsf-binutils-gdb-07540c156d053380cda0aca5b137a7f5ef0e0e24.tar.gz fsf-binutils-gdb-07540c156d053380cda0aca5b137a7f5ef0e0e24.tar.bz2 |
New option -nh: inhibit loading of ~/.gdbinit.
* NEWS: Mention -nh.
* main.c (captured_main): Recognize and process -nh.
(print_gdb_help): Mention -nh.
* gdb.1: Mention -nh. Remove erroneous docs on -nx behavior.
doc/
* gdb.texinfo (Mode Options): Document -nh.
Elaborate on docs for -nx.
Diffstat (limited to 'gdb/doc')
-rw-r--r-- | gdb/doc/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/doc/gdb.texinfo | 35 |
2 files changed, 36 insertions, 4 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index 05ac406..c33445a 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,8 @@ +2012-10-15 Doug Evans <dje@google.com> + + * gdb.texinfo (Mode Options): Document -nh. + Elaborate on docs for -nx. + 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com> * observer.texi (memory_changed): Expand parameter LEN to ssize_t. diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index 5fcbada..aed2556 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -1043,10 +1043,37 @@ batch mode or quiet mode. @itemx -n @cindex @code{--nx} @cindex @code{-n} -Do not execute commands found in any initialization files. Normally, -@value{GDBN} executes the commands in these files after all the command -options and arguments have been processed. @xref{Command Files,,Command -Files}. +Do not execute commands found in any initialization file. +There are three init files, loaded in the following order: + +@table @code +@item @file{system.gdbinit} +This is the system-wide init file. +Its location is specified with the @code{--with-system-gdbinit} +configure option (@pxref{System-wide configuration}). +It is loaded first when @value{GDBN} starts, before command line options +have been processed. +@item @file{~/.gdbinit} +This is the init file in your home directory. +It is loaded next, after @file{system.gdbinit}, and before +command options have been processed. +@item @file{./.gdbinit} +This is the init file in the current directory. +It is loaded last, after command line options other than @code{-x} and +@code{-ex} have been processed. Command line options @code{-x} and +@code{-ex} are processed last, after @file{./.gdbinit} has been loaded. +@end table + +For further documentation on startup processing, @xref{Startup}. +For documentation on how to write command files, +@xref{Command Files,,Command Files}. + +@anchor{-nh} +@item -nh +@cindex @code{--nh} +Do not execute commands found in @file{~/.gdbinit}, the init file +in your home directory. +@xref{Startup}. @item -quiet @itemx -silent |