From owner-freebsd-current Thu Jul 22 6:23:54 1999 Delivered-To: freebsd-current@freebsd.org Received: from mrelay.jrc.it (mrelay.jrc.it [139.191.1.65]) by hub.freebsd.org (Postfix) with ESMTP id 6705615212 for ; Thu, 22 Jul 1999 06:23:47 -0700 (PDT) (envelope-from nick.hibma@jrc.it) Received: from elect8 (elect8.jrc.it [139.191.71.152]) by mrelay.jrc.it (LMC5692) with SMTP id PAA28698; Thu, 22 Jul 1999 15:23:38 +0200 (MET DST) Date: Thu, 22 Jul 1999 15:23:37 +0200 (MET DST) From: Nick Hibma X-Sender: n_hibma@elect8 Reply-To: Nick Hibma To: Martin Cracauer Cc: current@FreeBSD.ORG Subject: Re: DDB: How to find address of static symbol? In-Reply-To: <19990722150850.A27165@cons.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG what about putting a break point at the beginning of the routine. Once you are there, you should be able to access it and set it. I think. But then again, a lot of people tell me that I am not very good at that. Nick On Thu, 22 Jul 1999, Martin Cracauer wrote: > 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 > > -- ISIS/STA, T.P.270, Joint Research Centre, 21020 Ispra, Italy To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message