From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19398 invoked by alias); 27 Nov 2009 02:25:30 -0000 Received: (qmail 19384 invoked by uid 22791); 27 Nov 2009 02:25:30 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-pz0-f189.google.com (HELO mail-pz0-f189.google.com) (209.85.222.189) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 27 Nov 2009 02:25:26 +0000 Received: by pzk27 with SMTP id 27so818361pzk.12 for ; Thu, 26 Nov 2009 18:25:25 -0800 (PST) MIME-Version: 1.0 Received: by 10.142.7.11 with SMTP id 11mr47349wfg.140.1259288725106; Thu, 26 Nov 2009 18:25:25 -0800 (PST) In-Reply-To: <4B0EC7C2.2040905@vmware.com> References: <20091125151151.GA28302@caradoc.them.org> <200911251606.07095.pedro@codesourcery.com> <4B0EC7C2.2040905@vmware.com> From: Hui Zhu Date: Fri, 27 Nov 2009 08:05:00 -0000 Message-ID: Subject: Re: A question about gdb script To: Michael Snyder , Pedro Alves , Daniel Jacobowitz , Marc Khouzam Cc: "gdb@sourceware.org" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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/msg00202.txt.bz2 Cool. What I did is: set $stop_recording_on_next_stop=3D0 set height 0 b functon_name commands record set $stop_recording_on_next_stop=3D1 finish end define hook-stop if $stop_recording_on_next_stop set $stop_recording_on_next_stop=3D0 record save record stop c end end It works very well. When we done the record name issue, I will post it to = wiki. Thanks everyone. :) Hui On Fri, Nov 27, 2009 at 02:24, Michael Snyder wrote: > Hui Zhu wrote: > >> It looks not bad, but got a lot of: >> ---Type to continue, or q to quit---q > > That can be fixed by saying "set height 0". > >> If you don't mind, I will post a patch to change each fprintf_filtered >> in record.c to fprintf_unfiltered. > > No, I don't agree with that. =A0If you do that, then user has > no choice about pagination. =A0"Set height" gives user a choice. > >