🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by David Thompson Wed, 04 Dec 1996 00:00
solaris 2 x86 w/ gas and gdb detail
#6119
Author: David Thompson
Date: Wed, 04 Dec 1996 00:00
118 lines
4858 bytes

I sent a configuration enhancement some time ago, and received a reply
requesting more information.  Unfortunately, (delete lame excuse why I
lost your message), so I have included the original enhancement
below.  Specifically, your message requested (1) a change log entry,
and (2) an explanation of why I would create an include file that
included another include file.

1) Here it is:

Wed Dec  4 08:29:21 1996  David Thompson  <thomas@cs.wisc.edu>

	* Added configuration support for Solaris 2 x86 systems using gas
	and gdb, to allow inclusion of debugging information for g++
	with -g instead of -gstabs.

2) The configure script differentiates between generic x86 svr4 and
Solaris 2 x86 svr4 hosts.  The existing Solaris 2 config had the
following define:
	tm_file=i386/sol2.h

which is an include file that included the generic sysv4.h file (don't
blame me for this one - it was already there!).  So, I following the
existing method and created a sol2gdb.h which included sysv4gdb.h.
The important thing here is that the
	#define PREFERRED_DEBUGGING_TYPE DBX_DEBUG 

from sysv4gdb.h happens for solaris 2 x86 hosts when stabs is set to
yes.  Whatever include path you want to use is up to you.


------- start of forwarded message (RFC 934 encapsulation) -------
Content-Length: 2628
Received: (from thomas@localhost) by pongo.cs.wisc.edu (8.6.12/8.6.12) id RAA12281; Wed, 13 Nov 1996 17:07:11 -0600
Message-Id: <199611132307.RAA12281@pongo.cs.wisc.edu>
From: David Thompson <thomas>
To: bug-gcc@prep.ai.mit.edu
Cc: thomas
Subject: Solaris 2 x86 configuration enhancement
Date: Wed, 13 Nov 1996 17:07:11 -0600


We have compiled many versions of gcc and would like to offer this
enhancement to the configuration.  Currently, g++ on solaris 2.x hosts
using gdb and gas requires -gstabs to include debugging information,
even with --with-stabs --with-gnu-as specified as configure options.
For generic i[345]86-*-sysv4* type machines, this has been corrected
with the configuration file .../gcc-2.7.2.1/config/i386/sysv4gdb.h and
its "#define PREFERRED_DEBUGGING_TYPE DBX_DEBUG" statement.  Up to
this point, however, this same ability has not been included fo
i[345]86-*-solaris2* | i[345]86-*-sunos5*r type hosts.  The patch is
very simple.  Here it is:

% cvs diff -u -r1.1.1.1 configure
RCS file: /s/gcc-2.7.2.1/src/CVSROOT/gcc-2.7.2.1/configure,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -r1.1.1.1 -r1.2
- --- configure   1996/09/16 21:25:06     1.1.1.1
+++ configure   1996/11/08 18:12:09     1.2
@@ -1086,7 +1086,12 @@
        i[345]86-*-solaris2* | i[345]86-*-sunos5*)
                cpu_type=i386
                xm_file=i386/xm-sysv4.h
- -               tm_file=i386/sol2.h
+               if [ x$stabs = xyes ]
+               then
+                       tm_file=i386/sol2gdb.h
+               else
+                       tm_file=i386/sol2.h
+               fi
                tmake_file=i386/t-sol2
                extra_parts="crt1.o crti.o crtn.o crtbegin.o crtend.o"
                xmake_file=x-svr4


% cat config/i386/sol2gdb.h
/* Target definitions for GNU compiler for Intel 80386 running Solaris 2
   with gas and gdb.

   Written by David Thompson (thomas@cs.wisc.edu)

This file is part of GNU CC.

GNU CC is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.

GNU CC is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with GNU CC; see the file COPYING.  If not, write to
the Free Software Foundation, 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.  */

#include "i386/sysv4gdb.h"


%

Let me know if I can provide any further information on this change.

- -- 
David Thompson  <thomas@cs.wisc.edu>

Associate Researcher			Department of Computer Science
University of Wisconsin-Madison		Phone:    (608)-262-1017
1210 West Dayton Street			Fax:      (608)-262-9997
Madison, WI 53706-1685
- --


------- end -------
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads