On 01 Oct 2008, at 18:39, Joel Brobecker wrote:
The answer to the question above lies in the Pascal parser. But when there are homonyms, how do you specify in your program exactly which one you mean?
unitname.functionname
And does GDB provide the same method for distinguishing these homonyms?
I don't think so. The main problem is that there is no common way of mangling procedure/function names in Pascal. FPC and GPC mangle them in different ways, and as far as I know gdb has no support to demangle either (it definitely does not support demangling FPC names).
For this reason, I always use either symbol names or sourcefile:linenr to place breakpoints.
Jonas