From mboxrd@z Thu Jan 1 00:00:00 1970 From: Orjan Friberg To: Grant Edwards , Paul Dubuc Cc: gdb@sourceware.cygnus.com Subject: Re: Redirect GDB command output? Date: Fri, 05 Oct 2001 08:12:00 -0000 Message-id: <3BBDCDD9.6E281600@axis.com> References: <3BBB60BB.BB99CB3F@cas.org> <20011005092623.A1275@visi.com> X-SW-Source: 2001-10/msg00063.html Grant Edwards wrote: > > On Wed, Oct 03, 2001 at 03:02:19PM -0400, Paul Dubuc wrote: > > > Is there any way to redirect GDB command output to a file (either > > interactively or in user-defined commands)? > > Nope. People (like me) have been asking about that for a long > time, but none of have actually done anything about it. :) Maybe I'm stating the obvious here, or maybe this is not the feature you guys were looking for, but you can use tee like this: 'gdb | tee log 2>&1', and all gdb output will be put in the file 'log' (in addition to appearing on stdout of course). -- Orjan Friberg E-mail: orjan.friberg@axis.com Axis Communications AB Phone: +46 46 272 17 68