Native Inspect Manual (H06.03+)

Table Of Contents
Introducing Native Inspect
Native Inspect Manual528122-003
1-19
Opening a Snapshot
Using the SAVE command (Inspect)
Snapshots are also created by the Snapshot server (INSPSNAP) if the SAVEABEND
attribute for a process is ON and the process abends.
Opening a Snapshot
Use the Native Inspect snapshot command to open a snapshot, providing a read-only
view of the state of the process that the snapshot represents.
To open a snapshot file, start Native Inspect and then enter:
(eInspect 3,301): snapshot $disk3.mysubvol.myprog
where $disk3.mysubvol.myprog is the name of a TNS/E native snapshot file (file
code 130) located on the TNS/E system.
Considerations
You can examine only one snapshot file at a time, and you cannot debug a process
at the same time. You cannot execute any Native Inspect commands that would
alter the state of the snapshot, or commands that would execute a process, such
as step or continue. Such commands report an error during snapshot analysis.
If the snapshot was created in a different location from its present location, you
might need to manually load symbols for loadfiles (using the symbol command,
symbol-file command,) and set a source search path (using the dir command).
Debugging DLLs
Dynamic-link libraries (DLLs), which contain position-independent code (PIC), are the
standard user libraries on TNS/E systems. DLLs can be implicitly loaded by the
system when a program is started or explicitly loaded and unloaded by program calls
to dlopen() and dlclose(), respectively.
Listing DLLs
Native Inspect maintains a list of the loadfiles that compose the current program. You
can display the list of loadfiles by entering the info command with the dll option.
Loading Symbols for DLLs
Native Inspect automatically loads symbols for the program file and for explicitly loaded
DLLs. You must explicitly load symbols for other DLLs using the symbol command,
symbol-file command. To explicitly add additional symbol files at a specific address,
use the add-symbol-file command.