🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++.bug
Article #1790

fix for gdb problems with static class members

#1790
From: James Clark
Date: Fri, 24 Mar 1989 18:40
44 lines
1640 bytes
As was reported by somebody in bug-gdb, gdb 3.1+ can't cope with
static class members generated by g++ 1.34.1.

This turns out to be a problem with g++ rather than gdb.  g++ was
keeping underscores on the front of the names of static class members
within the stabs string.

Here's a fix:

*** dbxout.c.orig	Fri Mar 24 17:46:07 1989
--- dbxout.c	Fri Mar 24 17:53:29 1989
***************
*** 458,463 ****
--- 458,465 ----
  		    char *name = XSTR (XEXP (DECL_RTL (tem), 0), 0);
  		    if (name[0] == '*')
  		      name += 1;
+ 		    if (name[0] == '_')
+ 		      name += 1;
  		    fprintf (asmfile, ":%s;", name);
  		    CHARS (strlen (name));
  		  }
***************
*** 980,985 ****
--- 982,989 ----
  	{
  	  name = XSTR (XEXP (DECL_RTL (decl), 0), 0);
  	  if (name[0] == '*')
+ 	    name += 1;
+ 	  if (name[0] == '_')
  	    name += 1;
  	}
        else


By the way, nothing I send to bug-g++ ever comes back to me in the
gnu.g++.bug newsgroup. Is the gateway broken, or are my messages
vanishing into the middle of the Atlantic, or is it just that my news
feed is flakey? Perhaps somebody could let me know if this makes it
through.

James Clark
jjc@jclark.uucp
uunet!mcvax!ukc!jclark!jjc
Technical Details
Message-ID: <8903241840.AA11814@jclark.uucp>
Path: arc1-ca.pugleaf.net!utzoo!telly!attcan!uunet!tut.cis.ohio-state.edu!uunet.uu.net!mcvax!jclark!jjc

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!telly!attcan!uunet!tut.cis.ohio-state.edu!uunet.uu.net!mcvax!jclark!jjc
From: mcvax!jclark!jjc@uunet.uu.net (James Clark)
Newsgroups: gnu.g++.bug
Subject: fix for gdb problems with static class members
Message-ID: <8903241840.AA11814@jclark.uucp>
Date: 24 Mar 89 18:40:30 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 44