From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24342 invoked by alias); 25 Jun 2007 19:19:00 -0000 Received: (qmail 24334 invoked by uid 22791); 25 Jun 2007 19:19:00 -0000 X-Spam-Check-By: sourceware.org Received: from mail-out4.apple.com (HELO mail-out4.apple.com) (17.254.13.23) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 25 Jun 2007 19:18:57 +0000 Received: from relay8.apple.com (relay8.apple.com [17.128.113.38]) by mail-out4.apple.com (Postfix) with ESMTP id B0B79A703DD; Mon, 25 Jun 2007 12:18:55 -0700 (PDT) Received: from relay8.apple.com (unknown [127.0.0.1]) by relay8.apple.com (Symantec Mail Security) with ESMTP id 9916C40053; Mon, 25 Jun 2007 12:18:55 -0700 (PDT) X-AuditID: 11807126-a30cfbb0000007dd-81-4680151f7c2f Received: from gdbrulez.apple.com (int-si-a.apple.com [17.128.113.41]) by relay8.apple.com (Apple SCV relay) with ESMTP id 8AF7440018; Mon, 25 Jun 2007 12:18:55 -0700 (PDT) Cc: Bram Kuijper , gdb@sourceware.org Message-Id: From: Jim Ingham To: Dan Kegel In-Reply-To: Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Mailer: Apple Mail (2.891) Mime-Version: 1.0 (Apple Message framework v891) Subject: Re: export backtrace Date: Mon, 25 Jun 2007 19:19:00 -0000 References: <467FDA31.5090309@rug.nl> 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: 2007-06/txt/msg00255.txt.bz2 Just define pre & post hooks for the command, and turn logging on in the pre hook, and off in the post hook. Or define you own "logged" version of the command and stash that in your .gdbinit file. Jim On Jun 25, 2007, at 11:14 AM, Dan Kegel wrote: > On 6/25/07, Bram Kuijper wrote: >> (gdb) backtrace ./program > my_file > > Another workaround: run it in a window, then copy and paste. > Yuckky, but works. > > But y'know, that would be a nice feature, so I filed a feature request > with summary "Please allow redirection of individual command output > to files".