On 24.06.2013 15:40, martin wrote:
On 24/06/13 14:25, Jonas Maebe wrote:


You should not try to parse the mangled name, because FPC's name
mangling is a one-way process at this time (and always has been until
now). If the mangled name's length gets close to 250 characters, the
end will be replaced by a CRC of the name (possibly multiple times).

I know it can break and all

but that is no problem.
currently there is no other data in those cases, so the debugger can not
to anything, not even open the unit.

if parsing fails (including codetool verifies if the result makes any
sense at all), then still nothing happens. same as before.

if in some cases it works, then that is an improvement.

The most important part is "make_mangledname" in "symdef.pas" and should at least give you a hint how the mangled name is constructed. But as Jonas said, this can break at any time.

Regards,
Sven

_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to