Date: Thu, 22 Jul 1999 15:23:37 +0200 (MET DST) From: Nick Hibma <nick.hibma@jrc.it> To: Martin Cracauer <cracauer@cons.org> Cc: current@FreeBSD.ORG Subject: Re: DDB: How to find address of static symbol? Message-ID: <Pine.GSO.3.95q.990722152232.12815r-100000@elect8> In-Reply-To: <19990722150850.A27165@cons.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <cracauer@cons.org> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.3.95q.990722152232.12815r-100000>