Debug Information

Table of Contents

Back

ECL

ECL Debug information is used by the KaECL interpreter to provide debugging tools. It is enabled by setting the Debug flag to non-zero.

If enabled, there is a debug header (at the end of the file) with the following format:

Section Size Notes
Magic 4 Contains "KDBG"
Source name - Zero-terminated string containing the Source file name. Length is a multiple of 4.

Also, Each Sub header is followed by a block of information:

Section Size Notes
Magic 4 Contains "ECLD"
Variable count 4  
Variable string - array of Zero-terminated strings containing the variable names

Also also, each instruction is followed by a block of information:

Section Size Notes
Magic 4 Contains "INSD"
Source line 4 Definition line in the source file
Last Instruction Size 4 Size of the instruction preceeding this. 0 if there is none.

Last Update: 2019-03-27 Mi 04:04

Validate