[fpc-devel] DEBUGSTART_, DEBUGINFO_ and DEBUGEND_ symbols

Jonas Maebe jonas.maebe at elis.ugent.be
Sun Nov 22 18:54:20 CET 2009


On 22 Nov 2009, at 18:43, Marc Weustink wrote:

> while adding sourceline info to the Lazarus disassembler output I ran into the DEBUGSTART_<unitnamehere>, DEBUGINFO_<unitnamehere> and DEBUGEND_<unitnamehere> symbols.
> What I wonder is why DEBUGSTART and DEBUGEND are reported as functions, while DEBUGINFO is reported as datavariable (fpc 2.2.4, stabs).

DEBUGSTART and DEBUGEND are symbols in text section, while DEBUGINFO is a label in the data section. I don't know exactly how the mechanism works, but the only purpose of these symbols is to prevent debug info from being smartlinked out. They are irrelevant for the actual debugging.


Jonas


More information about the fpc-devel mailing list