|
|
After SCODB is loaded into the kernel, symbol data is automatically available. The address of a symbol, and its segment type (data or text) can always be found using the C address-of operator (&):
debug0:4>If not in the kstruct file, data symbols are assumed to be of type int, and text symbols are assumed to be of type int( ) (function returning an integer). This type can be modified using the declare command (see ``Displaying symbol and expression types''), or by the symbol being present in the kstruct file.&u
E0000000 u data debug0:5>&read
D00A46D0 read text
The value of a symbol with a value type (in other words, not a structure or union) can be obtained quite simply:
debug0:6> sysdump_selective
1
Be careful not to confuse the value of a symbol with its address:
debug0:6> &sysdump_selective
C0414574 sysdump_selective data