aboutsummaryrefslogtreecommitdiff
path: root/sys/ia64
diff options
context:
space:
mode:
authorMarcel Moolenaar <marcel@FreeBSD.org>2004-07-21 05:07:09 +0000
committerMarcel Moolenaar <marcel@FreeBSD.org>2004-07-21 05:07:09 +0000
commitfd32d93b97086acaf80526bbb55f735b35d074fb (patch)
treed5fc2d68f79fbda0540ae3a2ae9071f9971b6988 /sys/ia64
parent3d4f3136950aa42a91dd2c6842d6d1ca1739ad9d (diff)
downloadsrc-fd32d93b97086acaf80526bbb55f735b35d074fb.tar.gz
src-fd32d93b97086acaf80526bbb55f735b35d074fb.zip
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
Notes
Notes: svn path=/head/; revision=132482
Diffstat (limited to 'sys/ia64')
-rw-r--r--sys/ia64/ia64/db_trace.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/sys/ia64/ia64/db_trace.c b/sys/ia64/ia64/db_trace.c
index 11a2e5582771..7f9c53cd9614 100644
--- a/sys/ia64/ia64/db_trace.c
+++ b/sys/ia64/ia64/db_trace.c
@@ -125,20 +125,6 @@ db_backtrace(struct thread *td, struct pcb *pcb, 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)
{
struct pcb pcb;