Hello,
Steve Loft wrote:
If I run the program in gdb, when it crashes I can't get it to display a backtrace: [...]
Did you supply the -g option when compiling?
gpc --automake -g foo.pas -o foo
You can turn on optimization if you wish, but you must not strip the symbol table (option -s). With -s or without -g you do not get a backtrace in GDB.
For more specific help, we need the source of the program in question.
Hope this helps,
Peter