Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: "Eli Zaretskii" <eliz@is.elta.co.il>
To: dhoward@redhat.com
Cc: gdb@sources.redhat.com
Subject: Re: Redefining built-in commands.
Date: Fri, 31 May 2002 00:29:00 -0000	[thread overview]
Message-ID: <3995-Fri31May2002102222+0300-eliz@is.elta.co.il> (raw)
In-Reply-To: <Pine.LNX.4.33.0205301449040.8589-100000@theotherone> (message from Don Howard on Thu, 30 May 2002 17:24:05 -0700 (PDT))

> Date: Thu, 30 May 2002 17:24:05 -0700 (PDT)
> From: Don Howard <dhoward@redhat.com>
> 
> Should gdb allow users to redefine built-in commands?

I think it should, unless we cannot do it safely.

> If so, should the 
> orignial alias continue to behave like the original built-in, or should 
> it's behavior be modified also?

I'm not 100% sure, but I tend to think the aliases that are mere
abbreviations, like `n' for `next', should be redefined to the new
command, while aliases which aren't abbreviations should be left to
point to the original command.

But if the above cannot be done, we should either redefine the aliases
to the new command, or disable the aliases entirely.  Crashing is not
an option, obviously.


  parent reply	other threads:[~2002-05-31  7:29 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-30 17:23 Don Howard
2002-05-30 17:37 ` Don Howard
2002-05-31  0:29 ` Eli Zaretskii [this message]
2002-06-05 14:39   ` Don Howard
2002-06-10  9:23     ` Tom Tromey

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3995-Fri31May2002102222+0300-eliz@is.elta.co.il \
    --to=eliz@is.elta.co.il \
    --cc=dhoward@redhat.com \
    --cc=gdb@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox