From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1802 invoked by alias); 9 Jul 2011 13:09:29 -0000 Received: (qmail 1627 invoked by uid 22791); 9 Jul 2011 13:09:28 -0000 X-SWARE-Spam-Status: No, hits=-1.0 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail-pv0-f169.google.com (HELO mail-pv0-f169.google.com) (74.125.83.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 09 Jul 2011 13:09:15 +0000 Received: by pvc12 with SMTP id 12so2049848pvc.0 for ; Sat, 09 Jul 2011 06:09:14 -0700 (PDT) MIME-Version: 1.0 Received: by 10.143.98.14 with SMTP id a14mr871995wfm.198.1310216954476; Sat, 09 Jul 2011 06:09:14 -0700 (PDT) Received: by 10.142.50.14 with HTTP; Sat, 9 Jul 2011 06:09:14 -0700 (PDT) In-Reply-To: References: Date: Sat, 09 Jul 2011 19:06:00 -0000 Message-ID: Subject: Re: PATCH From: oza Pawandeep To: Abhijit Halder Cc: gdb-patches@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2011-07/txt/msg00267.txt.bz2 Hi, with tee command, or similar things you can always redirect output to file, and from there you may apply the script to get output from that. probably use source command to automate and use shell command to run the script to get the things done. sure your way just gets output instantly, but other than that what value does it add; I am trying to understand. Regards, Oza. On Sat, Jul 9, 2011 at 2:00 PM, Abhijit Halder wrote: > There is no way to pass the output of a gdb command to a shell > command. For example, something similar is not permitted: "(gdb) > thread apply all bt | vim -". This kind of feature is quite helpful in > a scenario where a program under debugger has 100s of threads running > and one wants to search a particular pattern in stack-traces. I have > implemented a feature which will allow one to pass the output of any > gdb command to any shell command. > > 2011-07-09 Abhijit Halder > > =A0 =A0* top.c (execute_command_to_pipe): New function. > =A0 =A0 (execute_command): Update. > =A0 =A0* ui-file.c (gdb_modify_io): New function. > =A0 =A0* ui-file.h (gdb_modify_io): Add prototype. >