From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26693 invoked by alias); 16 Jul 2009 03:09:34 -0000 Received: (qmail 26683 invoked by uid 22791); 16 Jul 2009 03:09:34 -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 wf-out-1314.google.com (HELO wf-out-1314.google.com) (209.85.200.174) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 16 Jul 2009 03:09:28 +0000 Received: by wf-out-1314.google.com with SMTP id 28so1320666wfc.26 for ; Wed, 15 Jul 2009 20:09:26 -0700 (PDT) MIME-Version: 1.0 Received: by 10.142.171.3 with SMTP id t3mr2056206wfe.86.1247713766091; Wed, 15 Jul 2009 20:09:26 -0700 (PDT) In-Reply-To: <19037.16041.589932.535743@totara.tehura.co.nz> References: <19035.54231.157231.624882@totara.tehura.co.nz> <4A5BD5F3.1090103@vmware.com> <19035.57129.173542.368393@totara.tehura.co.nz> <4A5CC0E1.7020800@vmware.com> <19037.16041.589932.535743@totara.tehura.co.nz> From: Hui Zhu Date: Thu, 16 Jul 2009 03:09:00 -0000 Message-ID: Subject: Re: Reverse debugging To: Nick Roberts , Marc Khouzam Cc: "gdb@sources.redhat.com" , Michael Snyder 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-07/txt/msg00099.txt.bz2 Thanks Nick, I think the better way is add a special cmd for it. Marc, do you have some ideas with it? Thanks, Hui On Wed, Jul 15, 2009 at 10:27, Nick Roberts wrote: > I've created tool bar functionality in Emacs for reverse debugging a bit = like > that in the DSF-GDB debugger for Eclipse, I think. > > It works quite nicely and I would like to include it in Emacs 23.2 (23.1 > should be coming out next week) but there is one small problem with "reco= rd > stop". =A0It currently prompts the user for confirmation and Emacs can't = handle > that from the tool bar and update the GUI. =A0Would it be possible to add= a > "noconfirm" option, perhaps like below, which should be invisible to the > normal user? > > -- > Nick =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 http://www.inet.net.nz/~nickrob > > > 2009-07-15 =A0Nick Roberts =A0 > > =A0 =A0 =A0 =A0* record.c (cmd_record_stop): Add a "noconfirm" option to = the > =A0 =A0 =A0 =A0"record stop" command. > > > Index: record.c > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > RCS file: /cvs/src/src/gdb/record.c,v > retrieving revision 1.8 > diff -c -p -r1.8 record.c > *** record.c =A0 =A02 Jul 2009 17:21:06 -0000 =A0 =A0 =A0 1.8 > --- record.c =A0 =A015 Jul 2009 02:25:21 -0000 > *************** cmd_record_stop (char *args, int from_tt > *** 1157,1164 **** > =A0{ > =A0 =A0if (current_target.to_stratum =3D=3D record_stratum) > =A0 =A0 =A0{ > ! =A0 =A0 =A0 if (!record_list || !from_tty || query (_("Delete recorded = log and " > ! =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 =A0 "stop recording?"))) > =A0 =A0 =A0 =A0unpush_target (&record_ops); > =A0 =A0 =A0} > =A0 =A0else > --- 1157,1168 ---- > =A0{ > =A0 =A0if (current_target.to_stratum =3D=3D record_stratum) > =A0 =A0 =A0{ > ! =A0 =A0 =A0 int noconfirm =3D 0; > ! =A0 =A0 =A0 if (args) > ! =A0 =A0 =A0 =A0 noconfirm =3D (strcmp (args, "noconfirm") =3D=3D 0) ? 1= : 0; > ! > ! =A0 =A0 =A0 if (!record_list || !from_tty || noconfirm > ! =A0 =A0 =A0 =A0 || query (_("Delete recorded log and stop recording?"))) > =A0 =A0 =A0 =A0unpush_target (&record_ops); > =A0 =A0 =A0} > =A0 =A0else >