Top
NetCOBOL V11.0 Debugging Guide
FUJITSU Software

5.5.5 Identifying destroyed locations

The area destruction watch function of the COBOL Error Report is used to identify destroyed locations. To output the diagnostic report for identifying a destroyed location, set the leading address of the destroyed area into the @CBR_ATTACH_TOOL environment variable before starting the COBOL Error Report.

Specifying method

The following describes how to specify the destroyed addresses in the COBOL Error Report.

As an example, assume that the memory check function is enabled and the following message output:

JMP0071I-U [PID:00000010 TID:0000000E] LIBRARY WORK AREA DESTRUCTION WAS DETECTED.
           START PGM=A BRKADR=0x00202020
  1. Before starting the COBOL application, specify environment variable information @CBR_ATTACH_TOOL, as follows. Refer to "5.6.3.1 Starting the COBOL Error Report for applications that generate application errors and U-level runtime messages".

    @CBR_MEMORY_CHECK need not be disabled.

    @CBR_ATTACH_T00L=SNAP -w 0x00202020

    For the destroyed area address to be specified after the -w option, specify the address of "BRKADR=destroyed-address" in the message reported by the memory check function.

  2. Start the COBOL application. The diagnostic report that watches for area destruction will be output after the COBOL application ends. Refer to "5.6.4.3.4 Area destruction watch" for the format and how to read the output diagnostic report.