[fpc-devel] Pascal name mangling

Jonas Maebe jonas.maebe at elis.ugent.be
Mon Nov 15 17:29:35 CET 2010


On 15 Nov 2010, at 17:23, Felipe Monteiro de Carvalho wrote:

> I have this procedure:
> 
> function errorHandler(d: PDisplay; e: PXErrorEvent): cint; cdecl;
> 
> And I would like to set a break-point in it in GDB. Any ideas how to do that?
> 
> break errorHandler says that it can't find the procedure ...

Uppercase it: break ERRORHANDLER. Another handy command under some circumstances is "rbreak ERRORHANDLER" (this will match every symbol containing "ERRORHANDLER").

In general, it's best to use file:line_number though.


Jonas


More information about the fpc-devel mailing list