Debugging with GDB Manual (5900-1473; WDB 6.2; January 2011)

Table Of Contents
Table 2 Memory Debugging Commands in Interactive and Batch Mode (continued)
Batch modeInteractive modeCommand Description
min_leak_size = <num> (or) set
heap-check min-leak-size
<num>
set heap-check
min-leak-size <num>
Specify the minimum size of a block
for stack trace collection. GDB report
leaks of blocks, smaller than this
value. However, no stack trace is
provided.
frame_count = <num> (or) set
heap-check frame-count <num>
set heap-check
frame-count <num>
Specify the depth of call stack to be
captured
Not supported in batch modeset heap-check watch
address
Instruct GDB to stop, whenever a
block at the given address gets
allocated or deallocated.
Not supported in batch modeset heap-check
null-check <num>
Instructs malloc to return null after
<num> invocations of malloc.
Not supported in batch modeset heap-check
null-check-size
<size>
Instructs malloc to return null after
<num> bytes have been allocated by
malloc.
Not supported in batch modeset heap-check
seed-value <num>
Specifies the seed value to be used
for generating random
null-check-count.
Not supported in batch modeset heap-check
random-range <num>
Specifies the random range to be
used by random-range.
Not supported in batch modeset heap-check
interval <num>
Specifies the time interval to be used
for incremental memory profile.
Not supported in batch modeset heap-check
repeat <num>
Perform incremental profile for <num>
interval periods where each period
duration is defined by set heap-check
interval command. The default value
is 100.
Not supported in batch modecatch nomemNULL pointer return by memory
allocators; used with set
heap-check on, with/without
null-check enabled.
export RTC_PRINT_ADDR=1set print address onPrint hexadecimal addresses against
the function names shown in heap or
leak report stack trace.
172 HP-UX Configuration-Specific Information