On Mon, Dec 11, 2017 at 09:58:42AM +0100, Martin Pieuchot wrote:
> I'd like to reduce differences between gdb(1) and ddb(4).  My finger
> memory always try to use 'bt' to show a trace, so why not add it to
> ddb(4)?
> 
> ok?

Yes please!

> 
> Index: ddb/db_command.c
> ===================================================================
> RCS file: /cvs/src/sys/ddb/db_command.c,v
> retrieving revision 1.81
> diff -u -p -r1.81 db_command.c
> --- ddb/db_command.c  11 Dec 2017 05:27:40 -0000      1.81
> +++ ddb/db_command.c  11 Dec 2017 08:55:21 -0000
> @@ -628,6 +628,7 @@ struct db_command db_command_table[] = {
>       { "next",       db_trace_until_matching_cmd,0,          NULL },
>       { "match",      db_trace_until_matching_cmd,0,          NULL },
>       { "trace",      db_stack_trace_cmd,     0,              NULL },
> +     { "bt",         db_stack_trace_cmd,     0,              NULL },
>       { "call",       db_fncall,              CS_OWN,         NULL },
>       { "ps",         db_show_all_procs,      0,              NULL },
>       { "callout",    db_show_callout,        0,              NULL },

Reply via email to