[fpc-devel] '3var' in stabs-debuginfo. What does the 3 mean?

Jonas Maebe jonas.maebe at elis.ugent.be
Thu Sep 16 11:56:20 CEST 2010

On 16 Sep 2010, at 09:27, Joost van der Sluis wrote:

> n TDebugInfoStabs.method_add_stabstr (unit dbgstabs) the following
> strings are added for parameter-types: '3var', '5const' and '3out'.
> What do the numbers (3,5) before 'var', 'const' and 'out' mean?

See http://sourceware.org/gdb/onlinedocs/stabs.html#Methods . Method  
names in stabs have to be mangled according to the algorithm described  
in "The Annotated C++ Reference Manual, by Ellis and Stroustrup, ISBN  
0-201-51459-1". That algorithm includes prepending the length to all  
parameter names.

More information about the fpc-devel mailing list