make_mangledname lazarus / 64-FPC development ---------------------------------------------------------------------- engkin · 2017-10-10 05:44 Unit symdef has a function named make_mangledname: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i     function make_mangledname(const typeprefix:TSymStr;st:TSymtable;const suffix:TSymStr):TSymStr;...        { The mangled name is made out of at most 4 parts:         1) Optional typeprefix given as first parameter            with '_$' appended if not empty         2) Unit name or 'P$'+program name (never empty)         3) optional prefix variable that contains a unique            name for the local symbol table (prepended with '$_$'            if not empty)         4) suffix as given as third parameter,            also optional (i.e. can be empty)            prepended by '_$$_' if not empty } Where do I find the reference for this comment? GDB is able to call a function: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i function TestI: integer; but fails to find a class method: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i   TTest=class    public      class function sfoo: integer; The compiler emits the following mangled names for the above functions (DWARF2 and STABS): P$GDBTEST_$$_TESTI$$LONGINT P$GDBTEST$_$TTEST_$__$$_SFOO$$LONGINT Is the second name correct?