summaryrefslogtreecommitdiffstats
path: root/sys/powerpc
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2004-09-20 19:05:32 +0000
committerjhb <jhb@FreeBSD.org>2004-09-20 19:05:32 +0000
commite487fab4953bbf1f92413af17326300aa1bb2e0f (patch)
treeb2136a0a4b646b54ea0fa359879a4c4a13989501 /sys/powerpc
parent777f9072761c10509e408574842552f1b8779331 (diff)
downloadFreeBSD-src-e487fab4953bbf1f92413af17326300aa1bb2e0f.zip
FreeBSD-src-e487fab4953bbf1f92413af17326300aa1bb2e0f.tar.gz
- Add support for "paging" in stack trace output. That is, when you do
a stack trace from ddb, the output will pause with a '--More--' prompt every 18 lines. If you hit Enter, it will print another line and prompt again. If you hit space it will output another page and then prompt. If you hit 'q' or 'x' it will abort the rest of the stack trace. - Fix the sparc64 userland stack trace to honor the total count of lines to print. This is useful if your trace happens to walk back onto 0xdeadc0de and gets stuck in an endless loop. MFC after: 1 month Tested on: i386, alpha, sparc64
Diffstat (limited to 'sys/powerpc')
-rw-r--r--sys/powerpc/powerpc/db_trace.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/powerpc/powerpc/db_trace.c b/sys/powerpc/powerpc/db_trace.c
index 9fe1cc3..23d4e50 100644
--- a/sys/powerpc/powerpc/db_trace.c
+++ b/sys/powerpc/powerpc/db_trace.c
@@ -129,6 +129,7 @@ db_backtrace(struct thread *td, db_addr_t fp, int count)
const char *symname;
boolean_t kernel_only = TRUE;
boolean_t full = FALSE;
+ int quit;
#if 0
{
@@ -148,7 +149,9 @@ db_backtrace(struct thread *td, db_addr_t fp, int count)
stackframe = fp;
- for (;;) {
+ quit = 0;
+ db_setup_paging(db_simple_pager, &quit, DB_LINES_PER_PAGE);
+ while (!quit) {
if (stackframe < PAGE_SIZE)
break;
OpenPOWER on IntegriCloud