From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18242 invoked by alias); 22 Feb 2007 22:26:16 -0000 Received: (qmail 18232 invoked by uid 22791); 22 Feb 2007 22:26:16 -0000 X-Spam-Check-By: sourceware.org Received: from www.nabble.com (HELO talk.nabble.com) (72.21.53.35) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 22 Feb 2007 22:26:10 +0000 Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1HKMO8-0003PI-OX for gdb@sources.redhat.com; Thu, 22 Feb 2007 14:26:08 -0800 Message-ID: <9109689.post@talk.nabble.com> Date: Fri, 23 Feb 2007 07:05:00 -0000 From: Dexter Riley To: gdb@sources.redhat.com Subject: step through entire file, saving each line to file? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: edbeaty@charter.net 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-02/txt/msg00243.txt.bz2 hello! I'd like to step through an entire program, and dump each executed line fo file. I can do gdb myprogram > tee savefile (gdb)display/i $pc (gdb)start (gdb)si and it displays the currently executed line. I'd like the equivalent of typing si multiple times; trying (gdb) si 1000 apparently steps through 1000 lines and shows me THAT line. Is there some nifty si or shell trick to do this? Sorry for the newbie question, but any help would be greatly appreciated. Thanks very much, dexter -- View this message in context: http://www.nabble.com/step-through-entire-file%2C-saving-each-line-to-file--tf3275680.html#a9109689 Sent from the gdb - General mailing list archive at Nabble.com.