From a9860ec891d255363fab82ffc00c1be83f7d857c Mon Sep 17 00:00:00 2001 From: jhb Date: Mon, 1 Nov 2004 22:15:15 +0000 Subject: - Change the ddb paging "support" to use a variable (db_lines_per_page) to control the number of lines per page rather than a constant. The variable can be examined and changed in ddb as '$lines'. Setting the variable to 0 will effectively turn off paging. - Change db_putchar() to force out pending whitespace before outputting newlines and carriage returns so that one can rub out content on the current line via '\r \r' type strings. - Change the simple pager to rub out the --More-- prompt explicitly when the routine exits. - Add some aliases to the simple pager to make it more compatible with more(1): 'e' and 'j' do a single line. 'd' does half a page, and 'f' does a full page. MFC after: 1 month Inspired by: kris --- sys/alpha/alpha/db_trace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/alpha') diff --git a/sys/alpha/alpha/db_trace.c b/sys/alpha/alpha/db_trace.c index 8671ca8..4e76b39 100644 --- a/sys/alpha/alpha/db_trace.c +++ b/sys/alpha/alpha/db_trace.c @@ -221,7 +221,7 @@ db_backtrace(struct thread *td, db_addr_t frame, db_addr_t pc, int count) last_ipl = ~0L; tf = NULL; quit = 0; - db_setup_paging(db_simple_pager, &quit, DB_LINES_PER_PAGE); + db_setup_paging(db_simple_pager, &quit, db_lines_per_page); while (count-- && !quit) { sym = db_search_symbol(pc, DB_STGY_ANY, &diff); if (sym == DB_SYM_NULL) -- cgit v1.1