diff options
author | jhb <jhb@FreeBSD.org> | 2003-07-31 17:27:52 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2003-07-31 17:27:52 +0000 |
commit | 7a022c490241980d564815f3a9eb35f1899334d6 (patch) | |
tree | 2e3958472b2e92004d1cf78c61cbb91760f2f2b8 /sys/ddb/db_command.c | |
parent | e77fe07b3a80c9ac29de7086418b3c8db6b99374 (diff) | |
download | FreeBSD-src-7a022c490241980d564815f3a9eb35f1899334d6.zip FreeBSD-src-7a022c490241980d564815f3a9eb35f1899334d6.tar.gz |
Add a one-shot callout facility to db_printf() that executes the registered
callout when a specified number of lines have been output. This can be
used to implement pagers for ddb commands that output a lot of text. A
simple paging function is included that automatically rearms itself when
fired.
Reviewed by: bde, julian
Diffstat (limited to 'sys/ddb/db_command.c')
-rw-r--r-- | sys/ddb/db_command.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/ddb/db_command.c b/sys/ddb/db_command.c index ff895c7..56d3ed1 100644 --- a/sys/ddb/db_command.c +++ b/sys/ddb/db_command.c @@ -344,6 +344,7 @@ db_command(last_cmdp, cmd_table, aux_cmd_tablep, aux_cmd_tablep_end) * Execute the command. */ (*cmd->fcn)(addr, have_addr, count, modif); + db_setup_paging(NULL, NULL, -1); if (cmd->flag & CS_SET_DOT) { /* |