Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Joel Brobecker <brobecker@adacore.com>
To: gdb-patches@sources.redhat.com
Subject: [RFA] Add "del" as alias to "delete"
Date: Thu, 06 Apr 2006 16:24:00 -0000	[thread overview]
Message-ID: <20060406162400.GK1055@adacore.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 626 bytes --]

This is a followup on a suggestion made by Daniel in:

        http://sourceware.org/ml/gdb/2006-01/msg00205.html

Apparently, a message in GDB hinted that Daniel would not have time
in the near future to implement this, so I went ahead:

2006-04-06  Joel Brobecker  <brobecker@adacore.com>

        * breakpoint.c (_initialize_breakpoint): Add "del" as an alias
        of the "delete" command.

currently testing against the testsuite on x86-linux, but I don't expect
any regression. OK to commit?

Perhaps I should add a test too in one of the breakpoint testcases...
Will work on that as soon as this one is in.

-- 
Joel

[-- Attachment #2: del.diff --]
[-- Type: text/plain, Size: 666 bytes --]

Index: breakpoint.c
===================================================================
RCS file: /cvs/src/src/gdb/breakpoint.c,v
retrieving revision 1.223
diff -u -p -r1.223 breakpoint.c
--- breakpoint.c	9 Feb 2006 11:24:46 -0000	1.223
+++ breakpoint.c	6 Apr 2006 16:19:29 -0000
@@ -7813,6 +7813,7 @@ Also a prefix command for deletion of ot
 The \"unset\" command is also an alias for \"delete\"."),
 		  &deletelist, "delete ", 1, &cmdlist);
   add_com_alias ("d", "delete", class_breakpoint, 1);
+  add_com_alias ("del", "delete", class_breakpoint, 1);
   if (xdb_commands)
     add_com ("db", class_breakpoint, delete_command, _("\
 Delete some breakpoints.\n\

             reply	other threads:[~2006-04-06 16:24 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-06 16:24 Joel Brobecker [this message]
2006-04-06 16:30 ` Daniel Jacobowitz
2006-04-06 18:38   ` Joel Brobecker
2006-04-06 21:04     ` Michael Snyder
2006-04-06 21:11       ` Daniel Jacobowitz
2006-04-06 21:38         ` Michael Snyder
2006-05-17 16:02           ` Daniel Jacobowitz
2006-04-06 21:49         ` Andreas Schwab
2006-05-05 20:22     ` Daniel Jacobowitz
2006-05-05 22:50       ` Joel Brobecker
2006-04-06 19:14   ` Eli Zaretskii

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=20060406162400.GK1055@adacore.com \
    --to=brobecker@adacore.com \
    --cc=gdb-patches@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