and, bcopy. WDB 5.6 and later versions of the

 

 

 

 

debugger also validates calls to strcat and

 

 

 

 

strncat.

 

 

 

 

NOTE: HP WDB 6.0 and later versions of the

 

 

 

 

 

 

 

 

debugger improves performance of memory

 

 

 

 

 

 

 

 

debugging when the string option is set for

 

 

 

 

32-bit applications on HP-UX 11i v2 and later on

 

 

 

 

Itanium systems. However, the performance

 

 

 

 

degrades for 64-bit applications on HP-UX 11i

 

 

 

 

v2 and later on Itanium systems.

set heap-check bounds [on

Allocates extra space at the beginning and end

off]

of a heap block during allocation and fills it with

 

 

 

 

a specific pattern. When blocks are freed, WDB

 

 

 

 

verifies whether these patterns are intact. If they

 

 

 

 

are corrupted, an under flow or over- flow must

 

 

 

 

have occurred and WDB reports the problem.

 

 

 

 

This option increases the program's memory

 

 

 

 

requirements.

set heap-check scramble [on

Scrambles a memory block and overwrites it with

off]

a specific pattern when it is allocated or

 

 

 

 

deallocated. This change to the memory contents

 

 

 

 

increases the chance that erroneous behaviors,

 

 

 

 

such as attempting to access space that is freed

 

 

 

 

or depending on initial values of malloc()

 

 

 

 

blocks, cause the program to fail.

info dangling

Displays a list of all the dangling pointers and

 

 

 

 

dangling blocks that are potential sources of

 

 

 

 

memory corruption( may have false positives).

info corruption

Checks for corruption in the currently allocated

 

 

 

 

heap blocks.In addition, it lists the potential

 

 

 

 

in-blockcorruptions in all the freed blocks.

set heap-check

Collects a stack trace only when the size of the

min-leak-size num

leak exceeds the number of bytes you specify for

 

 

 

 

this value. Larger values improve run-time

 

 

 

 

performance. The default value is zero (0) bytes.

set heap-check frame-count

Controls the depth of the call stack collected.

num

Larger values increase run time. The default

 

 

 

 

value is four (4) stack frames.

set heap-check header-size

Sets the Header guard for each block of the

num of bytes

allocated memory. The default number of bytes

162 HP-UX Configuration-Specific Information

Page 162
Image 162
HP gnu source-level debugger 5992-4701 And, bcopy. WDB 5.6 and later versions, Debugger also validates calls to strcat