taylor@ddtg.com (Brad Taylor) (05/03/91)
We have been experiencing some problems in our evaluation of the Apple port of gcc. When our code is compiled using the "-g" option, the symbol table info seems to get corrupted. The messages are something like this: When using sdb..."Warning: '<filename>' not compiled with -g option" When using gdb..."main is not a function" Has anyone out there experienced these problems, or can anyone lend some info regarding these errors? Any info on this would be greatly appreciated. We have noticed a four fold increase in compile speed with gcc as opposed to the native A/UX cc. We are running A/UX 2.0 by the way. -- --Brad Taylor | FJ1200...No AMA number yet! Sys Admin | My opinions are my own, not DuPont's... DuPont Design Technologies Group | Do they actually have opinions? taylor@ddtisvr.ddtg.com |
coolidge@cs.uiuc.edu (John Coolidge) (05/03/91)
taylor@ddtg.com (Brad Taylor) writes: > We have been experiencing some problems in our evaluation of the Apple port >of gcc. When our code is compiled using the "-g" option, the symbol table >info seems to get corrupted. The messages are something like this: >When using sdb..."Warning: '<filename>' not compiled with -g option" This is because gcc by default produces COFF-format dbx stabs information (i.e. a hack) that isn't understandable by sdb. Gcc can be hacked to produce sdb output (if you use A/UX's as rather than gas), but I haven't tested it in quite a while. >When using gdb..."main is not a function" Haven't seen this one. Try running nm over the file that has main in it and looking for debugging symbols; also, take a look at the assembly output gcc produces for that file and see what's being output around main. I'm not that much of an expert at the innards of gcc's debugger output routines, but I can take a look and see if I can figure out what's going wrong... --John -------------------------------------------------------------------------- John L. Coolidge Internet:coolidge@cs.uiuc.edu UUCP:uiucdcs!coolidge Of course I don't speak for the U of I (or anyone else except myself) Copyright 1991 John L. Coolidge. Copying allowed if (and only if) attributed. You may redistribute this article if and only if your recipients may as well.