From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11711 invoked by alias); 17 Apr 2011 08:06:53 -0000 Received: (qmail 11701 invoked by uid 22791); 17 Apr 2011 08:06:52 -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,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from mail-qy0-f176.google.com (HELO mail-qy0-f176.google.com) (209.85.216.176) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 17 Apr 2011 08:06:39 +0000 Received: by qyk30 with SMTP id 30so2967875qyk.0 for ; Sun, 17 Apr 2011 01:06:38 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.37.130 with SMTP id x2mr2667367qcd.147.1303027598831; Sun, 17 Apr 2011 01:06:38 -0700 (PDT) Received: by 10.229.233.11 with HTTP; Sun, 17 Apr 2011 01:06:38 -0700 (PDT) Date: Sun, 17 Apr 2011 08:06:00 -0000 Message-ID: Subject: how to redirect output of sub program in target extended-remote From: "Amker.Cheng" To: 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/msg00082.txt.bz2 Hi, I'm debugging through a remote stub like: > 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? BTW, I could not execute stub_program in another console due to the stub_program itself, so it has to be issued in gdb command line interface. Thanks very much -- Best Regards.