🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #50657

Debugging using -g with extern inline functions

#50657
From: James Tsillas
Date: Tue, 31 Aug 1993 20:18
28 lines
1599 bytes
We greatly prefer using 'extern inline' functions over preprocessor
macros. Unfortunately we also need to debug using -g.

When we combine -g and -O on our Sun4 we get some intermittent weird
behavior perhaps due to the optimizer confusing the debugger.

Unfortunately we cannot inline our functions without -O.

Two questions:

	a) Is there some option which will inline functions declared as
	   'inline' without the use of -O?

	b) Is there some combination of -fno- flags I can use to turn
	   off whatever is confusing gdb?

Any replies to my question would be truly appreciated.

thanks,
-Jim.


--
	***  James Tsillas  jtsilla@damon.ccs.northeastern.edu   ***
	***      Work: (508)898-2800, Home: (617)641-0513        ***
	***        "He is after me. Jim is after him."           ***
	***            - Hop on Pop, Dr. Seuss                   ***
Technical Details
Message-ID: <JTSILLA.93Aug31151805@dec5200b.ccs.northeastern.edu>
Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!sol.ctr.columbia.edu!howland.reston.ans.net!noc.near.net!lynx!random.ccs.northeastern.edu!news

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,a7c182d49677f5b9,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1993-08-31 13:59:17 PST
Newsgroups: gnu.gcc.help
Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!sol.ctr.columbia.edu!howland.reston.ans.net!noc.near.net!lynx!random.ccs.northeastern.edu!news
From: jtsilla@dec5200b.ccs.northeastern.edu (James Tsillas)
Subject: Debugging using -g with extern inline functions
Message-ID: <JTSILLA.93Aug31151805@dec5200b.ccs.northeastern.edu>
Sender: news@random.ccs.northeastern.edu
Nntp-Posting-Host: dec5200b.ccs.northeastern.edu
Organization: Northeastern University, Boston, MA
Distribution: gnu
Date: Tue, 31 Aug 1993 20:18:05 GMT
Lines: 28