🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gdb.bug
Article #8768

gdb 4.7 attach problem on solaris 2.x (not the nm.h problem : -)

#8768
From: t e bennett
Date: Wed, 02 Dec 1992 16:38
27 lines
1496 bytes
gdb core dumps when attach command given.
This seems to fix it.

--tony

{~/.../c3/gdb-4.7/gdb}. diff -C 3 solib.c.orig solib.c
*** solib.c.orig	Tue Dec  1 14:08:33 1992
--- solib.c	Wed Dec  2 11:10:05 1992
***************
*** 402,408 ****
       mapped memory segment, so skip it.  Also, if the fd corresponds
       to the exec file, skip it as well. */
  
!   if ((fd == -1) || fdmatch (fileno ((FILE *)(exec_bfd -> iostream)), fd))
      {
        return (0);
      }
--- 402,408 ----
       mapped memory segment, so skip it.  Also, if the fd corresponds
       to the exec file, skip it as well. */
  
!   if ((fd == -1) || (exec_bfd == NULL) || fdmatch (fileno ((FILE *)(exec_bfd -> iostream)), fd))
      {
        return (0);
      }
--
--tbennett     tony.bennett@East.Sun.COM   mailstop: RTP-NC
Technical Details
Message-ID: <TONY.BENNETT.92Dec2113850@uh-oh.East.Sun.COM>
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!southeast.east.SUn.COM!tony.BEnnett

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f5053,6c4b4e60c08f4e17,start
X-Google-Attributes: gidf5053,public
X-Google-ArrivalTime: 1992-12-02 14:47:51 PST
Newsgroups: gnu.gdb.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!southeast.east.SUn.COM!tony.BEnnett
From: tony.BEnnett@southeast.east.SUn.COM (t e bennett)
Subject: gdb 4.7 attach problem on solaris 2.x (not the nm.h problem : -)
Message-ID: <TONY.BENNETT.92Dec2113850@uh-oh.East.Sun.COM>
Sender: gnulists@ai.mit.edu
Organization: Sun Microsystems, RTP, NC
Distribution: gnu
Date: Wed, 2 Dec 1992 16:38:48 GMT
Approved: bug-gdb@prep.ai.mit.edu
Lines: 28