Native Inspect Manual (H06.13+, J06.03+)
min-leak-size num
Collects a stack trace only when the size of the leak exceeds the number of bytes you
specify for this value. Larger values improve run-time performance. The default value is
zero (0) bytes.
string [on | off]
Toggles validation of calls to strcpy, strncpy, memcpy, memccpy, memset, memmove,
bzero, and bcopy. Native Inspect validates calls to strcat and strncat.
Examples
• To enable heap checking, enter the following:
For 32-bit application:
TACL> rund minheap /lib $system.sys00.zrtcdll/ executable arguments
(eInspect 0,248)set heap-check on
For 64-bit application:
TACL> run –minheap —lib=/G/system/sys00/yrtcdll executable arguments
(eInspect 0,248)set heap-check on
To obtain a snapshot heap profile, run the debugger and load the program, follow the steps
as shown in the examples under the info Command (memory leak detection) (page 90).
• To enable leak checking, enter the following:
For 32-bit application:
TACL> rund minheap /lib $system.sys00.zrtcdll/ executable arguments
(eInspect 0,248)set heap-check leaks on
For 64-bit application:
TACL> run –minheap —lib=/G/system/sys00/yrtcdll executable arguments
(eInspect 0,248)set heap-check leaks on
To view the leak profile, run the debugger and load the program, follow the steps as shown
in the examples under the info Command (memory leak detection) (page 90).
show Command
Displays either the environment settings for Native Inspect or the value of a variable in the program
being debugged.
show [attribute|{history|print|check} [sub-attr]]
Where:
attribute
This is typically one of the same attributes as for the set Command (environment).
The history, print, and check attributes are as described for the set Command
(environment).
Attributes supported only by the show command (not by the set command) include the
following:
commands
Displays the history of commands. Displays ten lines of commands.
copying
Displays conditions for redistributing copies of Native Inspect.
directories
Displays current search path for finding source files. Native Inspect always searches the
compilation directory ($cdir) and the current working directory ($cwd). You can set
additional subvolumes for searching by using the dir Command.
116 Native Inspect Command Syntax










