🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gdb.bug
Article #10006

gdb and POSIX

#10006
From: Karl Berry
Date: Fri, 05 Oct 1990 21:16
110 lines
3649 bytes
I recently compiled gdb 3.5 with Michael Bloom's stabs-in-coff patches
on a 386 machine running Interactive Unix 2.2, which claims to be
POSIX-compliant.   Here are the changes I needed to make.  I don't think
any of them are particular to the stabs-in-coff stuff.

ISC 2.2 has some support for signals, and so SIGTSTP is defined by their
<signal.h>.  But they don't supply sigsetmask, and I didn't want to try
to figure out what their equivalent was.  Therefore, I simply kludged.

Also, in malloc.c, <sys/vlimit.h> apparently defined some LIM_DATA
symbol.  Since this system doesn't have vlimit.h, I had to hack around
that.  Anyway, surely gdb should use Mike Haertel's newer malloc...

karl@cs.umb.edu

*** ORIG/infrun.c	Tue Jan 23 18:10:35 1990
--- infrun.c	Thu Oct  4 11:17:57 1990
***************
*** 126,127 ****
--- 126,131 ----
  
+ #ifdef _POSIX_SOURCE
+ #include <sys/types.h>
+ #endif
+ 
  #include <signal.h>
*** ORIG/infcmd.c	Thu Jan 18 13:56:33 1990
--- infcmd.c	Thu Oct  4 11:17:58 1990
***************
*** 28,29 ****
--- 28,33 ----
  
+ #ifdef _POSIX_SOURCE
+ #include <sys/types.h>
+ #endif
+ 
  #include <signal.h>
*** ORIG/main.c	Thu Oct  4 10:15:14 1990
--- main.c	Thu Oct  4 12:09:33 1990
***************
*** 29,30 ****
--- 29,34 ----
  
+ #ifdef _POSIX_SOURCE
+ #include <sys/types.h>
+ #endif
+ 
  #include <sys/file.h>
***************
*** 149,151 ****
  #ifndef STOP_SIGNAL
! #ifdef SIGTSTP
  #define STOP_SIGNAL SIGTSTP
--- 153,155 ----
  #ifndef STOP_SIGNAL
! #if defined(SIGTSTP) && !defined(i386)
  #define STOP_SIGNAL SIGTSTP
*** ORIG/malloc.c	Sat Sep 30 15:48:54 1989
--- malloc.c	Thu Oct  4 11:20:37 1990
***************
*** 149,150 ****
--- 149,154 ----
  /* Determine which kind of system this is.  */
+ #ifdef _POSIX_SOURCE
+ #include <sys/types.h>
+ #endif
+ 
  #include <signal.h>
***************
*** 172,174 ****
  #ifndef BSD4_2
! #ifndef USG
  #include <sys/vlimit.h>		/* warn the user when near the end */
--- 176,178 ----
  #ifndef BSD4_2
! #if !defined(USG) && !defined(_POSIX_SOURCE)
  #include <sys/vlimit.h>		/* warn the user when near the end */
*** ORIG/source.c	Wed Jan 10 18:56:20 1990
--- source.c	Thu Oct  4 10:26:12 1990
***************
*** 33,34 ****
--- 33,39 ----
  
+ /* POSIX and ANSI systems define this, others typically don't.  */
+ #ifndef S_ISDIR
+ #define S_ISDIR(m) (m & S_IFMT) != S_IFDIR)
+ #endif
+ 
  /* Path of directories to search for source files.
***************
*** 245,247 ****
  	    perror_with_name (name);
! 	  if ((st.st_mode & S_IFMT) != S_IFDIR)
  	    error ("%s is not a directory.", name);
--- 250,252 ----
  	    perror_with_name (name);
! 	  if (!S_ISDIR (st.st_mode))
  	    error ("%s is not a directory.", name);
*** ORIG/utils.c	Sun Nov  5 12:49:18 1989
--- utils.c	Thu Oct  4 11:17:57 1990
***************
*** 20,21 ****
--- 20,26 ----
  #include <stdio.h>
+ 
+ #ifdef _POSIX_SOURCE
+ #include <sys/types.h>
+ #endif
+ 
  #include <signal.h>
Technical Details
Message-ID: <9010052116.AA04249@aten.cs.umb.edu>
Path: arc1-ca.pugleaf.net!gmdzi!unido!isaak!escher!nadia!smurf!ira.uka.de!sol.ctr.columbia.edu!cica!tut.cis.ohio-state.edu!aten.cs.umb.edu!karl

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f5053,2e91f8585c869919,start
X-Google-Attributes: gidf5053,public
X-Google-ArrivalTime: 1990-10-05 14:16:30 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!isaak!escher!nadia!smurf!ira.uka.de!sol.ctr.columbia.edu!cica!tut.cis.ohio-state.edu!aten.cs.umb.edu!karl
From: karl@aten.cs.umb.edu (Karl Berry)
Newsgroups: gnu.gdb.bug
Subject: gdb and POSIX
Message-ID: <9010052116.AA04249@aten.cs.umb.edu>
Date: 5 Oct 90 21:16:30 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 110
Posted: Fri Oct  5 22:16:30 1990