summaryrefslogtreecommitdiff
path: root/command.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2014-09-28 22:13:13 +0300
committerArnold D. Robbins <arnold@skeeve.com>2014-09-28 22:13:13 +0300
commit983b6996b019850733fc9cd2ea57352f9dbbf7d8 (patch)
treec65a2e6339260751f3552bb0eea0b8116423f16d /command.c
parent66479f2ca1fbbf3b96cd2e1b15c0119b209df54a (diff)
downloadgawk-983b6996b019850733fc9cd2ea57352f9dbbf7d8.tar.gz
Add "where" command to debugger (alias for backtrace).
Diffstat (limited to 'command.c')
-rw-r--r--command.c2
1 files changed, 2 insertions, 0 deletions
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 },
};