[fpc-devel] mangling of function names

martin lazarus at mfriebe.de
Mon Jun 24 15:07:21 CEST 2013


anyone knows *all* the different ways that function names may be mangled 
(for the linker)?

I asked because this is sometime the only info returned by gdb (if there 
is no debug info). And it could be useful to parse it.

It  used to be Unit_class_$__function$...
   SYSTEM_TOBJECT_$__DISPATCH$formal

but I also saw
   CLASSES$_$TREADER_$__$$_READINTEGER$$LONGINT

makes me wonder if in some cases there may be more info between all the $$ ?

And also will need the format for plain functions (not methods)

Thanks



More information about the fpc-devel mailing list