Debugging with GDB (September 2007)
150 Debugging with GDB
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.
set heap-check
min-leak-size <num>
min_leak_size = <num> (or)
set heap-check min-leak-size
<num>
Specify the depth of call
stack to be captured
set heap-check
frame-count <num>
frame_count = <num> (or) set
heap-check frame-count <num>
Instruct GDB to stop,
whenever a block at the
given address gets allocated
or deallocated.
set heap-check watch
address
Not supported in batch mode
Instructs malloc to return
null after <num> invoca-
tions of malloc.
set heap-check
null-check <num>
Not supported in batch mode
Instructs malloc to return
null after <num> bytes have
been allocated by malloc.
set heap-check
null-check-size
<size>
Not supported in batch mode
Specifies the seed value to
be used for generating ran-
dom null-check-count
set heap-check
seed-value <num>
Not supported in batch mode
Specifies the random range
to be used by random range
set heap-check
random-range <num>
Not supported in batch mode
Specifies the time interval
to be used for increme ntal
memory profile
set heap-check
interval <num>
Not supported in batch mode
Perform incremental profile
for <num> interval periods
where each period duration
is defined by set heap-check
interval command. The de-
fault value is 100.
set heap-check repeat
<num>
Not supported in batch mode