From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10159 invoked by alias); 15 Jul 2009 02:28:05 -0000 Received: (qmail 10150 invoked by uid 22791); 15 Jul 2009 02:28:04 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from viper.snap.net.nz (HELO viper.snap.net.nz) (202.37.101.25) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 15 Jul 2009 02:27:58 +0000 Received: from totara (unknown [123.255.31.184]) by viper.snap.net.nz (Postfix) with ESMTP id D49A63DA77F; Wed, 15 Jul 2009 14:27:54 +1200 (NZST) Received: by totara (Postfix, from userid 1000) id A0D8BC159; Wed, 15 Jul 2009 14:27:53 +1200 (NZST) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19037.16041.589932.535743@totara.tehura.co.nz> Date: Wed, 15 Jul 2009 02:28:00 -0000 To: Michael Snyder Cc: "gdb@sources.redhat.com" Subject: Re: Reverse debugging In-Reply-To: <4A5CC0E1.7020800@vmware.com> 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> From: nickrob@snap.net.nz (Nick Roberts) 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/msg00094.txt.bz2 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 "record stop". It currently prompts the user for confirmation and Emacs can't handle that from the tool bar and update the GUI. Would it be possible to add a "noconfirm" option, perhaps like below, which should be invisible to the normal user? -- Nick http://www.inet.net.nz/~nickrob 2009-07-15 Nick Roberts * record.c (cmd_record_stop): Add a "noconfirm" option to the "record stop" command. Index: record.c =================================================================== RCS file: /cvs/src/src/gdb/record.c,v retrieving revision 1.8 diff -c -p -r1.8 record.c *** record.c 2 Jul 2009 17:21:06 -0000 1.8 --- record.c 15 Jul 2009 02:25:21 -0000 *************** cmd_record_stop (char *args, int from_tt *** 1157,1164 **** { if (current_target.to_stratum == record_stratum) { ! if (!record_list || !from_tty || query (_("Delete recorded log and " ! "stop recording?"))) unpush_target (&record_ops); } else --- 1157,1168 ---- { if (current_target.to_stratum == record_stratum) { ! int noconfirm = 0; ! if (args) ! noconfirm = (strcmp (args, "noconfirm") == 0) ? 1 : 0; ! ! if (!record_list || !from_tty || noconfirm ! || query (_("Delete recorded log and stop recording?"))) unpush_target (&record_ops); } else