From mboxrd@z Thu Jan 1 00:00:00 1970 From: Don Howard To: Eli Zaretskii Cc: Subject: Re: Doc update Date: Wed, 31 Oct 2001 09:49:00 -0000 Message-id: References: X-SW-Source: 2001-10/msg00394.html Ok to commit the following? 2001-10-30 Don Howard * gdb.texinfo: (Command Files) Added documentation for the behavior of gdb with input redirected from a file. Index: gdb.texinfo =================================================================== RCS file: /cvs/src/src/gdb/doc/gdb.texinfo,v retrieving revision 1.52 diff -p -u -w -r1.52 gdb.texinfo --- gdb.texinfo 2001/10/30 04:05:36 1.52 +++ gdb.texinfo 2001/10/31 17:06:33 @@ -13114,6 +13114,20 @@ without asking when used in a command fi 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 -- -Don dhoward@redhat.com gdb engineering