Inspect Manual

High-Level Inspect Commands
Inspect Manual429164-006
6-16
ADD SOURCE ASSIGN
\sys1.$devel.work.v1, and if this source file has been moved to \archive.$source,
the assignment is:
ADD SOURCE ASSIGN \sys1.$devel, \archive.$source
If \sys1 cannot be seen from the system Inspect is running on, you need to use
the ADD SOURCE ASSIGN command without specifying the original-name.
Alternatively, you can omit the system-name in the original-name. For example:
Restrictions on the New Name
The new name you provide must refer to a permanent disk file; it cannot refer to a
process or a temporary file.
Location of Source Files
If you used a C-series compiler and your object file has been moved to another
node on a network and the source files are at the same location as when the object
file was compiled, use the SELECT SOURCE SYSTEM command to identify the
node that the files reside on.
OSS Pathnames as Source Assigns
OSS pathnames are accepted as source assigns. In this case, filenames are not
dependent on the current systype of Inspect. All OSS pathnames must begin with
a “/” character.
Source Assigns from an OSS file to an Guardian EDIT File
When adding a source assign from an OSS file to a Guardian EDIT file, or vice
versa, unless the EDIT file line numbers match the sequential line ordinal of the
ASCII file, Inspect may not display the correct source.
Compilation Filename Matching
Inspect requires complete filenames for a source assign to match. For example,
the command ADD SOURCE ASSIGN /usr/s, /usr/tmp will not match with a
compilation filename of /usr/src/file.c, but will match against /usr/s/file.c. The
resulting source file will be usr/tmp/file.c. In other words, Inspect will match on a
name-by-name basis, not a character-by-character basis.
Guardian Compilation Filenames
Inspect will only compare Guardian compilation file names against Guardian
original-names, and vice versa. The new-name can be from a different file system
than the compilation name. For example:
-PROGRAM-ADD SOURCE ASSIGN $OLDVOL.OLDSUBV, \SYS2.$NEWVOL.NEWSUBV
Created: Original $OLDVOL.OLDSUBV Current \SYS2.$NEWVOL.NEWSUBV
-PROG-ADD SOURCE ASSIGN /usr/src/file.c,$vol.subvol.filec
Created: Original /usr/src/file.c Current $VOL.SUBVOL.FILEC
-PROG-ADD SOURCE ASSIGN $vol.subvol.module, /usr/src/module.c
Created: Original $vol.subvol.module Current /usr/src/module.c