On Tue, Jan 3, 2012 at 10:34 PM, Abhijit Halder wrote: > Hi all, > > The copyright assignment is yet to be accomplished, it's almost in > final stage. Meanwhile I want you to please do a final review of the > changes I made. > > This patch implements a new gdb command namely, "pipe" to pass gdb > command output to a shell command for further processing. This patch > includes necessary documentation change and test-cases as well. > > Thanks, > Abhijit Halder One last minute correction. >+/* Run execute_command for PIPE and FROM_TTY. Write output to the pipe, do not >+ display it to the screen. */ >+ >+static void >+execute_command_to_pipe (struct pipe_obj *pipe, int from_tty) >+{ >+ char *argv[4]; >+ struct cleanup *cleanup; >+ struct ui_file *fp; >+ int status; >+ const char *errmsg; >+ volatile struct gdb_exception exception; >+ const char *shell; Thie following correction is required to fix compilation error. char *shell; >+ >+ if (*pipe->gdb_cmd == '\0') >+ error (_("No gdb-command is specified.")); >+