Re: [fpc-pascal] Exception callstacks, backtracks...

2007-02-07 Thread Luiz Americo Pereira Camara
Vincent Snijders wrote: m utku schreef: Hi all, Basically I want to get a stack trace and log it when a special exception occurs. All I could find about was the lineinfo.pas (and -gl switch) but that does not help much as it interfaces only one procedure which is no good for client usage. Wh

Re: [fpc-pascal] Exception callstacks, backtracks...

2007-02-07 Thread Jonas Maebe
On 07 Feb 2007, at 22:06, m utku wrote: Basically I want to get a stack trace and log it when a special exception occurs. There's Procedure Dump_Stack(var f : text;bp:pointer); in the system unit. You can use it like this: dump_stack(stdout,get_frame); to dump the current call stack to

Re: [fpc-pascal] Exception callstacks, backtracks...

2007-02-07 Thread Vincent Snijders
m utku schreef: Hi all, Basically I want to get a stack trace and log it when a special exception occurs. All I could find about was the lineinfo.pas (and -gl switch) but that does not help much as it interfaces only one procedure which is no good for client usage. What do I miss; what common

[fpc-pascal] Exception callstacks, backtracks...

2007-02-07 Thread m utku
Hi all, Basically I want to get a stack trace and log it when a special exception occurs. All I could find about was the lineinfo.pas (and -gl switch) but that does not help much as it interfaces only one procedure which is no good for client usage. What do I miss; what common things do you u