aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorDon Howard <dhoward@redhat.com>2001-10-31 19:20:43 +0000
committerDon Howard <dhoward@redhat.com>2001-10-31 19:20:43 +0000
commitb433d00bbcd022648dc2dc07f12a4adad7940fce (patch)
treee0b4f3787dbcb312c239b0ef01d838dd057b8b85 /gdb
parent3f8ad85b6f36ce50ddaf10a4709cbedaec14e15a (diff)
downloadgdb-b433d00bbcd022648dc2dc07f12a4adad7940fce.zip
gdb-b433d00bbcd022648dc2dc07f12a4adad7940fce.tar.gz
gdb-b433d00bbcd022648dc2dc07f12a4adad7940fce.tar.bz2
2001-10-30 Don Howard <dhoward@redhat.com>
* gdb.texinfo: (Command Files) Added documentation for the behavior of gdb with input redirected from a file.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/doc/ChangeLog5
-rw-r--r--gdb/doc/gdb.texinfo14
2 files changed, 19 insertions, 0 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog
index 38d8abd..0f2257b 100644
--- a/gdb/doc/ChangeLog
+++ b/gdb/doc/ChangeLog
@@ -1,3 +1,8 @@
+2001-10-30 Don Howard <dhoward@redhat.com>
+
+ * gdb.texinfo: (Command Files) Added documentation for the behavior of gdb with
+ input redirected from a file.
+
2001-10-28 Fred Fish <fnf@redhat.com>
* gdb.texinfo (auto-solib-add): Change docs to match
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index d468977..bfa50a2 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -13114,6 +13114,20 @@ without asking when used in a command file. Many @value{GDBN} commands that
normally print messages to say what they are doing omit the messages
when called from command files.
+@value{GDBN} also accepts command input from standard input. In this
+mode, normal output goes to standard output and error output goes to
+standard error. Errors in a command file supplied on standard input do
+not terminate execution of the command file --- execution continues with
+the next command.
+
+@example
+gdb < cmds > log 2>&1
+@end example
+
+(The syntax above will vary depending on the shell used.) This example
+will execute commands from the file @file{cmds}. All output and errors
+would be directed to @file{log}.
+
@node Output
@section Commands for controlled output