🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #49732

gcc on SVR4 + STABS: can it be done?

#49732
From: meissner
Date: Mon, 13 Dec 1993 19:40
51 lines
2330 bytes
| I would like to use gcc and g++ for development on SVR4 platforms.
| Unfortunately, this may not be possible, since g++ doesn't emit DWARF
| symbols for debugging.
| 
| So, I would like to know what my options are for getting g++ to emit
| DWARF.  Here's what I've thought of off the top of my head:
| 
|     (1) Modify g++ to do The Right Thing.
| 
|     (2) Pay someone to modify g++ to do The Right Thing.
| 
|     (3) Get g++ to emit a different kind of debugging info on SVR4 --
|         STABS comes to mind.
| 
| Item (1) is listed only to show that I did think of it.  It is out of
| the question because I lack the time (and also most likely the
| expertise) for such an endeavor.
| 
| Item (2) is possible, but unfortuntely not very feasible at this time
| due to budget constraints.
| 
| So I'm left with (3).  Someone did it for Solaris; Can it be done for
| other SVR4 platforms?
| 
| Any comments welcome.

It should be fairly simple:

   1)	Modify your config/i386/sysv4.h to include the following
	lines:

	#define PREFERRED_DEBUGGING_TYPE DBX_DEBUG

	#ifndef DBX_DEBUGGING_INFO
	#define DBX_DEBUGGING_INFO	/* enable dbx debugging */
	#endif

   2)	Build and install the current version (2.2) of the gnu
	assembler, and the binary utilities (2.3).

   3)	Configure gcc with the -use-gnu-as and -use-gnu-ld switches.

Note in doing this, you lose shared libraries, since neither gas nor
gld currently support ELF shared libs.  If you want to produce dwarf
debugging, use -gdwarf instead of -g.

--
Michael Meissner	email: meissner@osf.org		phone: 617-621-8861
Open Software Foundation, 11 Cambridge Center, Cambridge, MA, 02142

Old hackers never die, their bugs just increase.
Technical Details
Message-ID: <9312131936.AA06786@pasta.osf.org>
Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!cs.utexas.edu!uunet!cis.ohio-state.edu!osf.ORG!meissner
References: meissner@osf.ORG

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,cccf233b11037941,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1993-12-13 18:17:40 PST
Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!cs.utexas.edu!uunet!cis.ohio-state.edu!osf.ORG!meissner
From: meissner@osf.ORG
Newsgroups: gnu.gcc.help
Subject: gcc on SVR4 + STABS: can it be done?
Date: 13 Dec 1993 14:40:22 -0500
Organization: GNUs Not Usenet
Lines: 51
Sender: daemon@cis.ohio-state.edu
Distribution: gnu
Message-ID: <9312131936.AA06786@pasta.osf.org>
References: meissner@osf.ORG