🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #52461

debug support on which platforms?

#52461
From: meissner
Date: Fri, 25 Sep 1992 08:32
42 lines
2439 bytes
| A client has asked me if he can use gcc/g++ 2.2.2 with gdb for a project
| where portability is an issue. They want the same compiler for many
| flavours of Unix, for VMS and for OS/2 2.0 which is the case with gcc
| 2.2.2 and gdb 4.6 (except there is no gdb for VMS).
| 
| Question: on which current Unix platforms does gcc/gdb work with full
| debugging support (i.e. access to all local and global variables and
| support for C++)? They are interested in:
| 
| - HP-PA			debugging does not work to my knowledge
| - MIPS			debugging works only partly ???
| - Sparc			???
| - i386/i486		works fully (same for i386/i486 under OS/2)
| - other?
| 
| Is there any Unix system today in addition to Intel platforms where gdb
| debugging works fully with gcc and gdb? Being able to access all
| variables during debugging is vital.

As long as you use -ggdb instead of -g, you get full debug support on
the MIPS.  Gcc 2.3 will contain a configure option (--with-stabs) to
select that as the default (which means you can't use the standard
vendor supplied debugger).  Alternatively, if you add:

	-DPREFERRED_DEBUGGING_TYPE=DBX_DEBUG

to the command line when building GCC, it will select bsd stabs as the
default -g debug format.

If you do not use C++, then using the host debug format (-gcoff or -g
if the above is not done) will give you full support.  The problem is
that the COFF debug format is too restrictive for C++ (ECOFF which the
MIPS uses is a little less restrictive, but there are still things
that can't be supported like inline functions defined in include
files).

Sparcs should work just fine and dandy.
--
Michael Meissner	email: meissner@osf.org		phone: 617-621-8861
Open Software Foundation, 11 Cambridge Center, Cambridge, MA, 02142

You are in a twisty little passage of standards, all conflicting.
Technical Details
Message-ID: <9209251632.AA00403@tiktok.osf.org>
Path: arc1-ca.pugleaf.net!sparky!uunet!convex!linac!pacific.mps.ohio-state.edu!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,5b969bcae9774a90,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1992-09-25 05:49:08 PST
Newsgroups: gnu.gcc.help
Path: arc1-ca.pugleaf.net!sparky!uunet!convex!linac!pacific.mps.ohio-state.edu!cis.ohio-state.edu!osf.ORG!meissner
From: meissner@osf.ORG
Subject: debug support on which platforms?
Message-ID: <9209251632.AA00403@tiktok.osf.org>
Sender: daemon@cis.ohio-state.edu
Organization: GNUs Not Usenet
References: meissner@osf.ORG
Distribution: gnu
Date: Fri, 25 Sep 1992 08:32:36 GMT
Lines: 42