Date: Thu, 22 Jul 1999 15:08:51 +0200 From: Martin Cracauer <cracauer@cons.org> To: current@freebsd.org Subject: DDB: How to find address of static symbol? Message-ID: <19990722150850.A27165@cons.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990722150850.A27165>