This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] Add "del" as alias to "delete"
On Thu, Apr 06, 2006 at 02:04:17PM -0700, Michael Snyder wrote:
> Joel Brobecker wrote:
> >>>2006-04-06 Joel Brobecker <brobecker@adacore.com>
> >>>
> >>> * breakpoint.c (_initialize_breakpoint): Add "del" as an alias
> >>> of the "delete" command.
> >>>
> >>Does anyone think we should make "dele" and "delet" work again too?
>
> Guys, this seems awkward and ad hoc (I realize it's my fault...)
>
> What if we make "delete" a command prefix (like "maint"),
> and then just branch from what follows it (eg. breakpoint,
> tracepoint, fork, checkpoint, display), with the default to be
> breakpoint.
>
> I'm not quite sure why this is broken only now...
> it used to work when "delete tracepoint" and
> "delete display" were possibilities.
You know, I had completely forgotten those were there. I wish I'd
realized before.
The reason it's a problem now is that you didn't add "delete
checkpoint", but instead "delete-checkpoint". If we switch it the
problem will go away.
There's a similar problem with detach, by the way. I used to type
"det" and now that doesn't work. Aliases or rename?
--
Daniel Jacobowitz
CodeSourcery