From 6b6256a93929d06caf344d026d380e31dc4a148b Mon Sep 17 00:00:00 2001 From: bde Date: Sun, 8 Oct 2006 18:37:00 +0000 Subject: Added some aliases: - `b' is now an official alias for `break'. It used to be an unofficial alias, but this was broken by adding the `bt' alias for `trace'. - `t' is now an official alias for `trace'. It used to be an unofficial alias, but this was broken by adding the `thread' command. - `registers' is now an alias for `show registers'. This is a hack to break the unofficial `r' alias for `reset'. `r' really means `registers' in some debuggers, so I sometimes type it accidentally and am annoyed when it resets the system. A short command shouldn't have such a large effect. Now at least `res' must be typed to disambiguate `reset'. --- sys/ddb/db_command.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sys') diff --git a/sys/ddb/db_command.c b/sys/ddb/db_command.c index 79143f1..36c5112 100644 --- a/sys/ddb/db_command.c +++ b/sys/ddb/db_command.c @@ -113,6 +113,7 @@ static struct command db_commands[] = { { "delete", db_delete_cmd, 0, 0 }, { "d", db_delete_cmd, 0, 0 }, { "break", db_breakpoint_cmd, 0, 0 }, + { "b", db_breakpoint_cmd, 0, 0 }, { "dwatch", db_deletewatch_cmd, 0, 0 }, { "watch", db_watchpoint_cmd, CS_MORE,0 }, { "dhwatch", db_deletehwatch_cmd, 0, 0 }, @@ -125,6 +126,7 @@ static struct command db_commands[] = { { "next", db_trace_until_matching_cmd,0, 0 }, { "match", db_trace_until_matching_cmd,0, 0 }, { "trace", db_stack_trace, CS_OWN, 0 }, + { "t", db_stack_trace, CS_OWN, 0 }, { "alltrace", db_stack_trace_all, 0, 0 }, { "where", db_stack_trace, CS_OWN, 0 }, { "bt", db_stack_trace, CS_OWN, 0 }, @@ -132,6 +134,7 @@ static struct command db_commands[] = { { "show", 0, 0, &db_show_table }, { "ps", db_ps, 0, 0 }, { "gdb", db_gdb, 0, 0 }, + { "registers", db_show_regs, 0, 0 }, { "reset", db_reset, 0, 0 }, { "kill", db_kill, CS_OWN, 0 }, { "watchdog", db_watchdog, 0, 0 }, -- cgit v1.1