From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31289 invoked by alias); 25 Nov 2009 15:12:03 -0000 Received: (qmail 31276 invoked by uid 22791); 25 Nov 2009 15:12:02 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 25 Nov 2009 15:11:55 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 0EE0710D85; Wed, 25 Nov 2009 15:11:53 +0000 (GMT) Received: from caradoc.them.org (209.195.188.212.nauticom.net [209.195.188.212]) by nan.false.org (Postfix) with ESMTP id F19C910927; Wed, 25 Nov 2009 15:11:52 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1NDJX5-0007Sp-ME; Wed, 25 Nov 2009 10:11:51 -0500 Date: Thu, 26 Nov 2009 08:30:00 -0000 From: Daniel Jacobowitz To: Hui Zhu Cc: gdb@sourceware.org Subject: Re: A question about gdb script Message-ID: <20091125151151.GA28302@caradoc.them.org> Mail-Followup-To: Hui Zhu , gdb@sourceware.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) 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: 2009-11/txt/msg00188.txt.bz2 On Wed, Nov 25, 2009 at 04:42:54PM +0800, Hui Zhu wrote: > 1. If I want get the gdb_record.xxx file of each record cycle. It's > still hard to me. Because if I add "record save" to commands, each > time it will save record entry to same file. > Does gdb have some way to handle it? like: > $a=1 > record save $a > $a++ Not directly, but you can do this using Python scripting. > 2. Sometime, I want just record a function, I want: > b functon_name > commands > silent > record > finish > #Maybe we can record save in this line, this is first question. > record stop > end > But when I really do it. I found that gdb stop running after finish. > > Could you help me with them? This is a known limitation of breakpoint commands. It's very difficult. -- Daniel Jacobowitz CodeSourcery