From 983b6996b019850733fc9cd2ea57352f9dbbf7d8 Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Sun, 28 Sep 2014 22:13:13 +0300 Subject: Add "where" command to debugger (alias for backtrace). --- command.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'command.c') diff --git a/command.c b/command.c index ad0dc372..2d4bc814 100644 --- a/command.c +++ b/command.c @@ -2648,6 +2648,8 @@ struct cmdtoken cmdtab[] = { gettext_noop("up [N] - move N frames up the stack.") }, { "watch", "w", D_watch, D_WATCH, do_watch, gettext_noop("watch var - set a watchpoint for a variable.") }, +{ "where", "", D_backtrace, D_BACKTRACE, do_backtrace, + gettext_noop("where [N] - (same as backtrace) print trace of all or N innermost (outermost if N < 0) frames.") }, { NULL, NULL, D_illegal, 0, (Func_cmd) 0, NULL }, }; -- cgit v1.2.3