From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30669 invoked by alias); 17 Apr 2011 14:09:55 -0000 Received: (qmail 30661 invoked by uid 22791); 17 Apr 2011 14:09:55 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST X-Spam-Check-By: sourceware.org Received: from mail-gx0-f169.google.com (HELO mail-gx0-f169.google.com) (209.85.161.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 17 Apr 2011 14:09:40 +0000 Received: by gxk23 with SMTP id 23so1959400gxk.0 for ; Sun, 17 Apr 2011 07:09:40 -0700 (PDT) MIME-Version: 1.0 Received: by 10.147.23.14 with SMTP id a14mr1793608yaj.38.1303049379940; Sun, 17 Apr 2011 07:09:39 -0700 (PDT) Received: by 10.146.167.11 with HTTP; Sun, 17 Apr 2011 07:09:39 -0700 (PDT) In-Reply-To: <20110417133512.GA1067@host1.jankratochvil.net> References: <20110417133512.GA1067@host1.jankratochvil.net> Date: Sun, 17 Apr 2011 14:09:00 -0000 Message-ID: Subject: Re: how to redirect output of sub program in target extended-remote From: "Amker.Cheng" To: Jan Kratochvil Cc: gdb@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2011-04/txt/msg00085.txt.bz2 > > (gdb) target extended-remote | stub_program 2>/tmp/file > > Or I do not understand the question. Thanks for replying. I wonder whether '2' in your command stands for stderr as in shell command line? when I typed following command: (gdb) target extended-remote | stub_program 1>/tmp/file the GDB always failed the connect with message: Ignoring packet error, continuing... warning: unrecognized item "timeout" in "qSupported" response while your command ran successfully. I did not understand the pipe in gdb command line well and did not find any doc on it. So could you point out some doc and let me learn it. Thanks very much. -- Best Regards.