[gnu.gdb.bug] gcc_compiled. useless in gdb

daemon@tut.cis.ohio-state.edu (Admin) (04/17/89)

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.