Add Source Region Description (QteAddSourceRegionDescription) API


  Required Parameter Group:


  Service Program: QTECRTVS

  Threadsafe: No

When a preprocessor is called with an input view, it will read the view and translate parts or whole of the input view it interests to generate its output view. If the preprocessor wants the translated symbols can be debuggable, it can create a source region particularly for those translated parts in the input view by Add Source Region Description(QteAddSourceRegionDescription) API. This API will add a new source region associated with the previously added input view. The source region is used to map symbols defined in the region to the symbols in the output view.

Every source region should be part or the whole of the previous view. The previous view can be a *TEXT or *LISTING view but it cannot be a block view, statement view nor another source region. The processors should guarantee the current adding source region doesn’t overlap with the existing source regions in the previous view. If this happens, the region will not be added and the API returns with an error. This API can be called multiple times and each time a new source region will be added. So a processor can add any number of different source regions. All those added source regions should have the same CCSID with the previous view.

When a source region is created successfully, a handle to it will be returned in the form of region number. This number will be needed when adding blocks associated with it.


Authorities and Locks

None.


Required Parameter Group

Previous view number
INPUT; BINARY(4)

The number of the previously added view which this source region is enclosed in. The previous view can be a *TEXT view or *LISTING view.

Map target view number
INPUT; BINARY(4)

The number of target view which the previous view is mapped to.

Start line number
INPUT; BINARY(4)

The line number from which the source region starts.

End line number
INPUT; BINARY(4)

The line number where the source region ends.

Preprocessor ID
INPUT; BINARY(4)

The identifier of the preprocessor that created this source region. Supported values are:

0 SQL preprocessor.
Source region number
OUTPUT; BINARY(4)

The number used to identify this source region. Other APIs can refer this region by this number.

Error code
I/O; CHAR(*)

The structure in which to return error information. For the format of this structure, see Error code parameter.



Error Messages



API introduced: V7R3

[ Back to top | Debugger APIs | APIs by category ]