DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Using SCODB on SVR5

Symbols

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> &u
   E0000000        u      data
   debug0:5> &read
   D00A46D0        read    text
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.

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

© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005