From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7894 invoked by alias); 27 Dec 2004 18:10:11 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 7725 invoked from network); 27 Dec 2004 18:10:00 -0000 Received: from unknown (HELO vsmtp3.tin.it) (212.216.176.143) by sourceware.org with SMTP; 27 Dec 2004 18:10:00 -0000 Received: from gattaccio.codalunga (81.49.37.98) by vsmtp3.tin.it (7.0.027) (authenticated as molter@tin.it) id 41C401F10043BED7; Mon, 27 Dec 2004 19:09:49 +0100 Received: by gattaccio.codalunga (Postfix, from userid 1001) id 4E007C3B5; Mon, 27 Dec 2004 19:08:34 +0100 (CET) Date: Mon, 27 Dec 2004 18:10:00 -0000 From: Marco Molteni To: Russell Shaw Cc: gdb@sources.redhat.com Subject: Re: Learning gdb Message-Id: <20041227190834.169ac92d.molter@tin.it> In-Reply-To: <41CD4BE3.6040802@netspace.net.au> References: <41CD4BE3.6040802@netspace.net.au> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-SW-Source: 2004-12/txt/msg00122.txt.bz2 On Sat, 25 Dec 2004 22:15:47 +1100 Russell Shaw wrote: [..] > What's a good way of printing messages from my own printfs in the > source without getting the output mixed up with the console output > of gdb? (in an x-windows environment) man gdb: -tty=device Run using device for your program's standard input and output. so in the xterm you want to use for your printfs, you issue the "tty" command and use the value you get for gdb: molter@gattaccio[~]$ tty /dev/ttyp1 on another xterm: gdb -tty=/dev/ttyp1 marco -- Very graphic, classical but efficient.