|
|
The structure/union definition (stundef) and variable definition (varidef) files contain information that greatly enhances the ease of debugging using SCODB:
For kernel-level SCODB, these files are created automatically by scripts that are called by the idbuild(ADM) command. Beginning with SCO OpenServer Release 5.0.5, these files are also created automatically for the user-level scodb command, even if the kernel-level SCODB is not linked into the kernel.
For SCO OpenServer Release 5.0.4, these files can be created manually if you are running user-level scodb(ADM) without linking the scodb driver into the kernel. The sequence is:
The idef files are stored in the /etc/conf/pack.d/scodb/defs directory. Each idef file has a descriptive name (such as the name of the driver for which it was built), suffixed with .idef. For example, the idef file for the mine driver would be named mine.idef. The special driver name conf is used to denote the structures and variables that are defined in the conf.c, fsconf.c, and vector.c files (built by the link kit during the kernel build).
If the /etc/conf/pack.d/scodb/defs/extra file exists, the extra.idef file is rebuilt.
Use the mkidef program in the /etc/conf/pack.d/scodb/bin/ directory to build individual idef files:
mkidef idef_file [CFLAGS] input_files...
idef files contain intermediate-definition information. Often two different idef files have much information in common (such as struct user); ldsv eliminates duplicate data.