diff options
author | marcel <marcel@FreeBSD.org> | 2004-07-21 05:07:09 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2004-07-21 05:07:09 +0000 |
commit | f77d7b9449be99051fccac83314a8f288e1e83ec (patch) | |
tree | d5fc2d68f79fbda0540ae3a2ae9071f9971b6988 /sys/powerpc | |
parent | 0afdd77e87f742c3e90ad01e2ba251fb15b086f8 (diff) | |
download | FreeBSD-src-f77d7b9449be99051fccac83314a8f288e1e83ec.zip FreeBSD-src-f77d7b9449be99051fccac83314a8f288e1e83ec.tar.gz |
Unify db_stack_trace_cmd(). All it did was look up the thread given
the thread ID and call db_trace_thread().
Since arm has all the logic in db_stack_trace_cmd(), rename the
new DB_COMMAND function to db_stack_trace to avoid conflicts on
arm.
While here, have db_stack_trace parse its own arguments so that
we can use a more natural radix for IDs. If the ID is not a thread
ID, or more precisely when no thread exists with the ID, try if
there's a process with that ID and return the first thread in it.
This makes it easier to print stack traces from the ps output.
requested by: rwatson@
tested on: amd64, i386, ia64
Diffstat (limited to 'sys/powerpc')
-rw-r--r-- | sys/powerpc/powerpc/db_trace.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/sys/powerpc/powerpc/db_trace.c b/sys/powerpc/powerpc/db_trace.c index a4291d9..9fe1cc3 100644 --- a/sys/powerpc/powerpc/db_trace.c +++ b/sys/powerpc/powerpc/db_trace.c @@ -267,20 +267,6 @@ db_backtrace(struct thread *td, db_addr_t fp, int count) } void -db_stack_trace_cmd(db_expr_t addr, boolean_t have_addr, db_expr_t count, - char *modif) -{ - struct thread *td; - - td = (have_addr) ? kdb_thr_lookup(addr) : kdb_thread; - if (td == NULL) { - db_printf("Thread %d not found\n", (int)addr); - return; - } - db_trace_thread(td, count); -} - -void db_trace_self(void) { db_addr_t addr; |