🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gdb.bug
Article #758

gcc_compiled. useless in gdb

#758
From: Admin
Date: Mon, 17 Apr 1989 14:48
17 lines
1064 bytes
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.
Technical Details
Message-ID: <8904171448.AA20168@litp.univ-p6-7.fr>
Path: arc1-ca.pugleaf.net!utzoo!telly!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!daemon

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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