X-Git-Url: https://gitweb.dragonflybsd.org/dragonfly.git/blobdiff_plain/1c1822af7fa1a442bc552d83a6710f025fd99331..ebd07f54744cb00562c0ddfb7ae11728dc65c76a:/sys/platform/pc32/i386/db_trace.c diff --git a/sys/platform/pc32/i386/db_trace.c b/sys/platform/pc32/i386/db_trace.c index b7b4d4377d..6654ad308c 100644 --- a/sys/platform/pc32/i386/db_trace.c +++ b/sys/platform/pc32/i386/db_trace.c @@ -163,6 +163,7 @@ db_print_stack_entry(const char *name, int narg, char **argnp, int *argp, } db_printf(") at "); db_printsym(callpc, DB_STGY_PROC); + db_printf(" %p ", (void*) callpc); db_printf("\n"); } @@ -273,7 +274,7 @@ db_stack_trace_cmd(db_expr_t addr, boolean_t have_addr, db_expr_t count, frame = (struct i386_frame *)(SP_REGS(&ddb_regs) - 4); callpc = PC_REGS(&ddb_regs); } else if (!INKERNEL(addr)) { -#if needswork +#if 0 /* needswork */ pid = (addr % 16) + ((addr >> 4) % 16) * 10 + ((addr >> 8) % 16) * 100 + ((addr >> 12) % 16) * 1000 + ((addr >> 16) % 16) * 10000; @@ -292,12 +293,12 @@ db_stack_trace_cmd(db_expr_t addr, boolean_t have_addr, db_expr_t count, struct proc *p; struct pcb *pcb; - p = pfind(pid); + p = pfindn(pid); if (p == NULL) { db_printf("pid %d not found\n", pid); return; } - if ((p->p_flag & P_SWAPPEDOUT)) { + if ((p->p_flags & P_SWAPPEDOUT)) { db_printf("pid %d swapped out\n", pid); return; }