[RFA] Add "del" as alias to "delete"
Joel Brobecker
brobecker@adacore.com
Thu Apr 6 16:24:00 GMT 2006
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
-------------- next part --------------
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\
More information about the Gdb-patches
mailing list