aboutsummaryrefslogtreecommitdiff
path: root/gdb/doc
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2012-07-02 12:05:01 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2012-07-02 12:05:01 +0000
commit2d7b58e8d63907b0dd76f7447f514ef66035a62f (patch)
treec508f72bc7bd44fc3772b683b9d92612fbacee2a /gdb/doc
parent8690e6342cb5c32536fca28e50efacc5c8683acb (diff)
downloadgdb-2d7b58e8d63907b0dd76f7447f514ef66035a62f.zip
gdb-2d7b58e8d63907b0dd76f7447f514ef66035a62f.tar.gz
gdb-2d7b58e8d63907b0dd76f7447f514ef66035a62f.tar.bz2
gdb/
Execute -ix and -iex only after system and user gdbinit files. * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND processing down after gdbinit files. gdb/doc/ * gdb.texinfo (File Options): Change -ix and -iex commands that apply only after gdbinit files. (Startup): Move -iex and -iex commands down after gdbinit files.
Diffstat (limited to 'gdb/doc')
-rw-r--r--gdb/doc/ChangeLog6
-rw-r--r--gdb/doc/gdb.texinfo24
2 files changed, 18 insertions, 12 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog
index 2a398fe..1b75b4e 100644
--- a/gdb/doc/ChangeLog
+++ b/gdb/doc/ChangeLog
@@ -1,5 +1,11 @@
2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
+ * gdb.texinfo (File Options): Change -ix and -iex commands that apply
+ only after gdbinit files.
+ (Startup): Move -iex and -iex commands down after gdbinit files.
+
+2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
+
* gdb.texinfo (Auto-loading safe path): Note the shell wildcard
possibility.
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index a01ce9a..83ce123 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -997,16 +997,16 @@ also be interleaved with @samp{-command} as required.
@itemx -ix @var{file}
@cindex @code{--init-command}
@cindex @code{-ix}
-Execute commands from file @var{file} before loading gdbinit files or the
-inferior.
+Execute commands from file @var{file} before loading the inferior (but
+after loading gdbinit files).
@xref{Startup}.
@item -init-eval-command @var{command}
@itemx -iex @var{command}
@cindex @code{--init-eval-command}
@cindex @code{-iex}
-Execute a single @value{GDBN} command before loading gdbinit files or the
-inferior.
+Execute a single @value{GDBN} command before loading the inferior (but
+after loading gdbinit files).
@xref{Startup}.
@item -directory @var{directory}
@@ -1261,14 +1261,6 @@ Here's the description of what @value{GDBN} does during session startup:
Sets up the command interpreter as specified by the command line
(@pxref{Mode Options, interpreter}).
-@anchor{Option -init-eval-command}
-@item
-Executes commands and command files specified by the @samp{-iex} and
-@samp{-ix} options in their specified order. Usually you should use the
-@samp{-ex} and @samp{-x} options instead, but this way you can apply
-settings before @value{GDBN} init files get executed and before inferior
-gets loaded.
-
@item
@cindex init file
Reads the system-wide @dfn{init file} (if @option{--with-system-gdbinit} was
@@ -1283,6 +1275,14 @@ DOS/Windows systems, the home directory is the one pointed to by the
@code{HOME} environment variable.} and executes all the commands in
that file.
+@anchor{Option -init-eval-command}
+@item
+Executes commands and command files specified by the @samp{-iex} and
+@samp{-ix} options in their specified order. Usually you should use the
+@samp{-ex} and @samp{-x} options instead, but this way you can apply
+settings before @value{GDBN} init files get executed and before inferior
+gets loaded.
+
@item
Processes command line options and operands.