diff options
author | marcel <marcel@FreeBSD.org> | 2004-07-10 23:47:20 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2004-07-10 23:47:20 +0000 |
commit | aae5483213805c645aad67985fa4f638d6e34915 (patch) | |
tree | 533bc344dcaf70d30b9a52c0dc5327488516647b /sys/ddb/db_ps.c | |
parent | 1dca995d693b9df1e65a294b6385cc1d442233b1 (diff) | |
download | FreeBSD-src-aae5483213805c645aad67985fa4f638d6e34915.zip FreeBSD-src-aae5483213805c645aad67985fa4f638d6e34915.tar.gz |
Mega update for the KDB framework: turn DDB into a KDB backend.
Most of the changes are a direct result of adding thread awareness.
Typically, DDB_REGS is gone. All registers are taken from the
trapframe and backtraces use the PCB based contexts. DDB_REGS was
defined to be a trapframe on all platforms anyway.
Thread awareness introduces the following new commands:
thread X switch to thread X (where X is the TID),
show threads list all threads.
The backtrace code has been made more flexible so that one can
create backtraces for any thread by giving the thread ID as an
argument to trace.
With this change, ia64 has support for breakpoints.
Diffstat (limited to 'sys/ddb/db_ps.c')
-rw-r--r-- | sys/ddb/db_ps.c | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/sys/ddb/db_ps.c b/sys/ddb/db_ps.c index f146cb3..47d4c7d 100644 --- a/sys/ddb/db_ps.c +++ b/sys/ddb/db_ps.c @@ -166,29 +166,3 @@ dumpthread(volatile struct proc *p, volatile struct thread *td) } else db_printf(" %s\n", p->p_comm); } - - -#define INKERNEL(va) (((vm_offset_t)(va)) >= USRSTACK) -void -db_show_one_thread(db_expr_t addr, boolean_t have_addr, - db_expr_t count, char *modif) -{ - struct proc *p; - struct thread *td; - - if (!have_addr) - td = curthread; - else if (!INKERNEL(addr)) { - printf("bad thread address"); - return; - } else - td = (struct thread *)addr; - /* quick sanity check */ - if ((p = td->td_proc) != td->td_ksegrp->kg_proc) - return; - printf("Proc %p ",p); - dumpthread(p, td); -#ifdef __i386__ - db_stack_thread((db_expr_t)td, 1, count, modif); -#endif -} |