Path: utzoo!telly!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!daemon From: daemon@tut.cis.ohio-state.edu (Admin) Newsgroups: gnu.gdb.bug Subject: gcc_compiled. useless in gdb Message-ID: <8904171448.AA20168@litp.univ-p6-7.fr> Date: 17 Apr 89 14:48:39 GMT Distribution: gnu Organization: GNUs Not Usenet Lines: 17 gcc-1.34 generates a special label ``gcc_compiled:'' at the beginning of each compiled file in order to notify other tools like gdb that the file was compiled by Mr. gcc. I just figured out that gdb skips this symbol when it segments the exec file in partial symbol tables. It starts the new psymtab when it reaches the stab N_SO which just follows the ``gcc_compiled.:'' label so the label is never processed again by read_ofile_symtab and gdb never knows it reads a gcc compiled file. At least, this is what happens on my sun386 or is ``as'' supposed to reorder symbols on some machines ? I suggest that gcc output the symbol AFTER the N_SO stab. Is this message clear enough ? Jean-Daniel.