Stack problems?
Peter Gerwinski
peter at gerwinski.de
Thu Jan 25 21:37:03 CET 2001
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
--
http://home.pages.de/~Peter.Gerwinski/ - G-N-U GmbH: http://www.g-n-u.de
Maintainer GNU Pascal - http://home.pages.de/~GNU-Pascal/ - gpc-20010121
GnuPG key fingerprint: 9E7C 0FC4 8A62 5536 1730 A932 9834 65DB 2143 9422
keys: http://www.gerwinski.de/pubkeys/ - AntiSpam: http://spam.abuse.net
More information about the Gpc
mailing list