Native Inspect Manual (H06.13+, J06.03+)
No. Total bytes Blocks Address Function
0 49000 1000 0x4044eff0 main()
• To view the leak profile, perform the following steps:
1. Run the debugger, load the program, and issue the set heap-check leaks on
command:
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
See set heap-check Command (memory leak detection) (page 115) for a description of the
set heap-check leaks on command.
2. Set a breakpoint by entering the following command:
(eInspect 0,248)b probepoint
where probepoint is some interesting point in the application being debugged.
3. Run the program by entering the following command:
(eInspect 0,248)run
4. When the program is stopped at a breakpoint, enter the following info leaks command
to display the list of memory leaks:
(eInspect 0,248)info leaks
The following output is displayed:
Scanning for memory leaks...done
2439 bytes leaked in 25 blocks
No. Total bytes Blocks Address Function
0 1234 1 0x40419710 myfunc()
1 333 1 0x40410bf8 main()
2 245 8 0x40410838 strdup()
[...]
5. The debugger assigns a numeric identifier for each leak. To view a stack trace for a
specific leak, specify the leak number from the list of leaks, as follows:
(eInspect 0,248)info leak 2
245 bytes leaked in 8 blocks (10.05% of all bytes leaked)
These range in size from 26 to 36 bytes and are allocated in strdup ()
in link_the_list ()at test.c:55
in main ()at test.c:13
in _start ()
jump Command
Continues execution of the current process at the specified line number or address.
The jump command changes the program counter to the specified location but does not change
the current stack frame or registers.
CAUTION: Use the jump command with care. It can result in program failure if the target location
depends on a state (such as registers) that has not been established.
jump locspec
Where:
locspec
The location where you want execution to stop. See Syntax of locspec (page 59).
jump Command 93










