From owner-freebsd-hackers Tue Jul 10 10:51:13 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from tabby.kudra.com (gw.kudra.com [199.6.32.20]) by hub.freebsd.org (Postfix) with ESMTP id E102B37B407 for ; Tue, 10 Jul 2001 10:51:05 -0700 (PDT) (envelope-from robert@tabby.kudra.com) Received: (from robert@localhost) by tabby.kudra.com (8.11.4/8.11.3) id f6AHp5e86984 for freebsd-hackers@freebsd.org; Tue, 10 Jul 2001 13:51:05 -0400 (EDT) (envelope-from robert) Date: Tue, 10 Jul 2001 13:51:04 -0400 From: Robert Sexton To: freebsd-hackers@freebsd.org Subject: a DDB Question. Message-ID: <20010710135104.A86848@tabby.kudra.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I'm trying to track down a memory leak using ddb. DDB is a really neat piece of work, but its not very well documented. I notice that the man page is dated 1996, and folks have added useful things like 'call', that are undocumented. Specifically, what it the correct syntax to examine a static variable in a kernel routine? I built a little bit of code to help me out, like this: static int my_test_routine() { static int counter; return(counter++); } So exactly what would be the syntax to examine 'counter'? Thanks. -- Robert Sexton - robert@kudra.com, Cincinnati OH, USA There's safety in numbers... Large prime numbers. - John Gilmore To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message