From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22015 invoked by alias); 25 Jun 2007 15:09:53 -0000 Received: (qmail 22006 invoked by uid 22791); 25 Jun 2007 15:09:53 -0000 X-Spam-Check-By: sourceware.org Received: from eastrmmtao101.cox.net (HELO eastrmmtao101.cox.net) (68.230.240.7) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 25 Jun 2007 15:09:51 +0000 Received: from eastrmimpo01.cox.net ([68.1.16.119]) by eastrmmtao101.cox.net (InterMail vM.7.08.02.01 201-2186-121-102-20070209) with ESMTP id <20070625150940.PDFC8465.eastrmmtao101.cox.net@eastrmimpo01.cox.net>; Mon, 25 Jun 2007 11:09:40 -0400 Received: from black ([70.181.32.198]) by eastrmimpo01.cox.net with bizsmtp id Fr9f1X00N4GV2Jm0000000; Mon, 25 Jun 2007 11:09:39 -0400 Received: from bob by black with local (Exim 4.63) (envelope-from ) id 1I2qCB-0003xm-Ev; Mon, 25 Jun 2007 11:09:39 -0400 Date: Mon, 25 Jun 2007 15:09:00 -0000 From: Bob Rossi To: Bram Kuijper Cc: gdb@sourceware.org Subject: Re: export backtrace Message-ID: <20070625150939.GC32316@cox.net> References: <467FDA31.5090309@rug.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <467FDA31.5090309@rug.nl> User-Agent: Mutt/1.5.13 (2006-08-11) 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/msg00238.txt.bz2 On Mon, Jun 25, 2007 at 05:07:29PM +0200, Bram Kuijper wrote: > Hi all, > A veeeery simple question with an unfindable answer: how do I export a > backtrace to a file so that I can search through it outside gdb? > > (gdb) backtrace ./program > my_file obviously isn't working, so what > should be the alternative? One alternative would be to use the logging feature of gdb. That will log the entire session, and will include the backtrace. Bob Rossi