diff options
author | bde <bde@FreeBSD.org> | 2006-10-08 18:37:00 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 2006-10-08 18:37:00 +0000 |
commit | 6b6256a93929d06caf344d026d380e31dc4a148b (patch) | |
tree | ed996bc5352515ded8c37c56a0cc058574192b15 | |
parent | ff5fb7910a5f1cf6327ac47939d4fadc117a4701 (diff) | |
download | FreeBSD-src-6b6256a93929d06caf344d026d380e31dc4a148b.zip FreeBSD-src-6b6256a93929d06caf344d026d380e31dc4a148b.tar.gz |
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'.
-rw-r--r-- | sys/ddb/db_command.c | 3 |
1 files changed, 3 insertions, 0 deletions
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 }, |