From owner-freebsd-current Thu Jul 22 6:11:11 1999 Delivered-To: freebsd-current@freebsd.org Received: from cons.org (knight.cons.org [194.233.237.195]) by hub.freebsd.org (Postfix) with ESMTP id 2E80D151EA for ; Thu, 22 Jul 1999 06:10:53 -0700 (PDT) (envelope-from cracauer@cons.org) Received: (from cracauer@localhost) by cons.org (8.8.8/8.7.3) id PAA27196 for current@freebsd.org; Thu, 22 Jul 1999 15:08:51 +0200 (CEST) Date: Thu, 22 Jul 1999 15:08:51 +0200 From: Martin Cracauer To: current@freebsd.org Subject: DDB: How to find address of static symbol? Message-ID: <19990722150850.A27165@cons.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.1i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I want to examine and switch a variable in ddb. The variable is static to a source file, I don't have a symbol in ddb. I see the address of the symbol with `nm /kernel | grep symname`, but the addresses listed here are obviously subject to file-specific offsets. The addresses show up twice and I can verify that the data is wrong when I just use the hex address in ddb. How can I get an address suitable for ddb? What are the offsets to add to the symbol addresses I get from nm? Thanks Martin -- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Martin Cracauer http://www.cons.org/cracauer/ Tel.: (private) +4940 5221829 Fax.: (private) +4940 5228536 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message