From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1995 invoked by alias); 9 Oct 2008 08:41:08 -0000 Received: (qmail 1983 invoked by uid 22791); 9 Oct 2008 08:41:07 -0000 X-Spam-Check-By: sourceware.org Received: from mtaout3.012.net.il (HELO mtaout3.012.net.il) (84.95.2.7) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 09 Oct 2008 08:40:20 +0000 Received: from HOME-C4E4A596F7 ([77.127.3.182]) by i_mtaout3.012.net.il (HyperSendmail v2004.12) with ESMTPA id <0K8G006X6QT9F140@i_mtaout3.012.net.il> for gdb-patches@sourceware.org; Thu, 09 Oct 2008 10:41:34 +0200 (IST) Date: Thu, 09 Oct 2008 08:41:00 -0000 From: Eli Zaretskii Subject: Re: [RFA] Resubmit reverse debugging [5/5] In-reply-to: <200810090522.43534.pedro@codesourcery.com> X-012-Sender: halo1@inter.net.il To: Pedro Alves Cc: gdb-patches@sourceware.org, bauerman@br.ibm.com, msnyder@vmware.com Reply-to: Eli Zaretskii Message-id: References: <48EC18F9.8040105@vmware.com> <1223489663.19088.43.camel@localhost.localdomain> <200810090522.43534.pedro@codesourcery.com> X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-10/txt/msg00279.txt.bz2 > From: Pedro Alves > Date: Thu, 9 Oct 2008 05:22:43 +0100 > Cc: Thiago Jung Bauermann , > msnyder@vmware.com > > On Wednesday 08 October 2008 20:15:16, Eli Zaretskii wrote: > > > From: Thiago Jung Bauermann > > > What about adding "previous" and either "pr" or "pre" as alias to > > > reverse-next? > > > > Please, not "pr". The .gdbinit file that comes with Emacs defines a > > user command named "pr" that prints any Lisp object. This command is > > central to debugging Emacs, so re-learning its name would be a hassle. > > This argument isn't valid. User defined commands override > GDB's built-in commands, so you'd not lose anything. I know about the overriding, and I'm sorry for not making myself clear about that (somehow, I thought it was obvious). My problem was not with the technical aspects, but with human aspects. Like this, for example: > (gdb) pr > Ambiguous command "pr": print, print-object, printf, process. Exactly! Right now, if I forget that I'm not debugging Emacs (yes, it happens ;-) and type "pr" out of habit, I get the above response, or something similar. With the proposed alias, I might get the `previous' command actually _executed_, to my surprise and annoyance. Another problem is that I will lose the alias when I'm debugging Emacs. Not good, IMO.