This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA] Resubmit reverse debugging [5/5]


> From: Pedro Alves <pedro@codesourcery.com>
> Date: Thu, 9 Oct 2008 05:22:43 +0100
> Cc: Thiago Jung Bauermann <bauerman@br.ibm.com>,
>  msnyder@vmware.com
> 
> On Wednesday 08 October 2008 20:15:16, Eli Zaretskii wrote:
> > > From: Thiago Jung Bauermann <bauerman@br.ibm.com>
> > > 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]