Article View: comp.sys.sun
Article #10454Help needed reading vmunix symbols
From: Aled Morris
Date: Sat, 21 Jan 1989 01:48
Date: Sat, 21 Jan 1989 01:48
18 lines
1432 bytes
1432 bytes
I have a short program which uses (successfully) nlist(3) to read the
address of a kernel variable from /vmunix (the variable in question is
_ipforwarding, but that's beside the point). Taking the value found in
the field "n_value" of the nlist structure, I can seek into /dev/kmem and
read the current value of the kernel variable. (are you still with me?)
My problem is that I want to read the value of the variable from /vmunix
itself (i.e. "What is the value given to this variable at boot time?").
How do I convert from the n_value number into a seek offset into /vmunix?
Thanks in advance,
Aled Morris
systems programmer
mail: awm@doc.ic.ac.uk | Department of Computing
uucp: ..!ukc!icdoc!awm | Imperial College
talk: 01-589-5111x5085 | 180 Queens Gate, London SW7 2BZ
Technical Details
Message-ID:
<AWM.89Jan16215150@gould.doc.ic.ac.uk>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!ncis.llnl.gov!helios.ee.lbl.gov!pasteur!ucbvax!decwrl!labrea!rutgers!mailrus!cornell!uw-beaver!rice!sun-spots-requestShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!ncis.llnl.gov!helios.ee.lbl.gov!pasteur!ucbvax!decwrl!labrea!rutgers!mailrus!cornell!uw-beaver!rice!sun-spots-request From: mcvax!gould.doc.imperial.ac.uk!awm@uunet.uu.net (Aled Morris) Newsgroups: comp.sys.sun Subject: Help needed reading vmunix symbols Message-ID: <AWM.89Jan16215150@gould.doc.ic.ac.uk> Date: 21 Jan 89 01:48:41 GMT Sender: usenet@rice.edu Organization: Dept. of Computing, Imperial College, London Lines: 18 Approved: Sun-Spots@rice.edu Original-Date: 16 Jan 89 21:51:50 GMT X-Sun-Spots-Digest: Volume 7, Issue 115, message 1 of 18