On Tue, November 13, 2012 02:08, Michel Catudal wrote: > Le 12/11/2012 07:34, Jonas Maebe a écrit : >> >> On 12 Nov 2012, at 13:32, Michel Catudal wrote: >> >>> Is there a way to figure out when a crash occurs, in other words get >>> the compiler to tell me the conditions that made it crash the >>> compilation? >> >> By debugging the compiler. Add OPT="-O- -gl" to add debug information >> and disable optimizations. >> >> >> Jonas >> > Isn't this just to add debugging information for using gdb?
No, not only: -gl ensures including line information and allows providing information about source lines related to the stack. > > The crash here is during compilation > > with the -gl flag : . . Make sure to add also "-Xs-" (i.e. OPT="-O- -gl -Xs-"). Tomas _______________________________________________ fpc-devel maillist - [email protected] http://lists.freepascal.org/mailman/listinfo/fpc-devel
