From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12013 invoked by alias); 17 Apr 2011 13:35:31 -0000 Received: (qmail 11932 invoked by uid 22791); 17 Apr 2011 13:35:31 -0000 X-SWARE-Spam-Status: No, hits=-6.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 17 Apr 2011 13:35:16 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p3HDZFl3024437 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sun, 17 Apr 2011 09:35:15 -0400 Received: from host1.jankratochvil.net (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p3HDZDgc026591 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sun, 17 Apr 2011 09:35:15 -0400 Received: from host1.jankratochvil.net (localhost [127.0.0.1]) by host1.jankratochvil.net (8.14.4/8.14.4) with ESMTP id p3HDZD0i001139; Sun, 17 Apr 2011 15:35:13 +0200 Received: (from jkratoch@localhost) by host1.jankratochvil.net (8.14.4/8.14.4/Submit) id p3HDZCnA001137; Sun, 17 Apr 2011 15:35:12 +0200 Date: Sun, 17 Apr 2011 13:35:00 -0000 From: Jan Kratochvil To: "Amker.Cheng" Cc: gdb@sourceware.org Subject: Re: how to redirect output of sub program in target extended-remote Message-ID: <20110417133512.GA1067@host1.jankratochvil.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) 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/msg00084.txt.bz2 On Sun, 17 Apr 2011 10:06:38 +0200, Amker.Cheng wrote: > > target extended-remote | stub_program > everything goes ok, but the only problem is that the outputs of > stub_program go into the same terminal of gdb. > Is there any method to redirect the output of stub_program in this case? (gdb) target extended-remote | stub_program 2>/tmp/file Or I do not understand the question. Regards, Jan