From owner-freebsd-hackers Fri Dec 11 04:57:19 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id EAA03067 for freebsd-hackers-outgoing; Fri, 11 Dec 1998 04:57:19 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from ns1.yes.no (ns1.yes.no [195.204.136.10]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id EAA03060 for ; Fri, 11 Dec 1998 04:57:16 -0800 (PST) (envelope-from eivind@bitbox.follo.net) Received: from bitbox.follo.net (bitbox.follo.net [195.204.143.218]) by ns1.yes.no (8.9.1a/8.9.1) with ESMTP id NAA16717 for ; Fri, 11 Dec 1998 13:57:05 +0100 (CET) Received: (from eivind@localhost) by bitbox.follo.net (8.8.8/8.8.6) id NAA16825 for hackers@freebsd.org; Fri, 11 Dec 1998 13:57:01 +0100 (MET) Message-ID: <19981211135700.J5444@follo.net> Date: Fri, 11 Dec 1998 13:57:00 +0100 From: Eivind Eklund To: hackers@FreeBSD.ORG Subject: Getting DDB tracedumps outside DDB Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.2i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I'm trying to debug some code that is indirectly called from a lot of places; to be able to get an overview of the calling patterns, I'd like to dump out a number of backtraces. Unfortunately, the function is called in a real-time environment (I'm trying to debug a call descriptor leak in i4b), so setting a breakpoint, showing a trace, and continuing is likely to create problems. I tried adding #ifdef DDB db_stack_trace_cmd(NULL, 0, -1, "unused, I think"); #endif to the start of the function in question, but this just got me a double fault. If anybody know how to invoke this properly, I'd appreciate it. Eivind. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message