diff options
author | jhb <jhb@FreeBSD.org> | 2004-11-01 22:15:15 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2004-11-01 22:15:15 +0000 |
commit | a9860ec891d255363fab82ffc00c1be83f7d857c (patch) | |
tree | 2d51ddc5baf115819b8b07497742acacc8965e22 /sys/amd64 | |
parent | 28f5ed05c5d8e2b6e4fbadf576613fdcc0f27676 (diff) | |
download | FreeBSD-src-a9860ec891d255363fab82ffc00c1be83f7d857c.zip FreeBSD-src-a9860ec891d255363fab82ffc00c1be83f7d857c.tar.gz |
- 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
Diffstat (limited to 'sys/amd64')
-rw-r--r-- | sys/amd64/amd64/db_trace.c | 2 | ||||
-rw-r--r-- | sys/amd64/amd64/intr_machdep.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/amd64/amd64/db_trace.c b/sys/amd64/amd64/db_trace.c index a4d464a..fb80d29 100644 --- a/sys/amd64/amd64/db_trace.c +++ b/sys/amd64/amd64/db_trace.c @@ -381,7 +381,7 @@ db_backtrace(struct thread *td, struct trapframe *tf, first = TRUE; 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, &offset); db_symbol_values(sym, &name, NULL); diff --git a/sys/amd64/amd64/intr_machdep.c b/sys/amd64/amd64/intr_machdep.c index c544251..8524943 100644 --- a/sys/amd64/amd64/intr_machdep.c +++ b/sys/amd64/amd64/intr_machdep.c @@ -313,7 +313,7 @@ DB_SHOW_COMMAND(irqs, db_show_irqs) else verbose = 0; isrc = interrupt_sources; - db_setup_paging(db_simple_pager, &quit, DB_LINES_PER_PAGE); + db_setup_paging(db_simple_pager, &quit, db_lines_per_page); for (i = 0; i < NUM_IO_INTS && !quit; i++, isrc++) if (*isrc != NULL) db_dump_ithread((*isrc)->is_ithread, verbose); |