🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gdb.bug
Article #10193

"misfeature" in c++ 'operator' naming (w/2 line fix)

#10193
From: Mark W. Eichin
Date: Wed, 07 Mar 1990 01:36
10 lines
1219 bytes
GDB3.5, dbxread.c, line 4808 has code that compares for "op$" and then
labels the symbol "operator foo" for human use, esp 4810:
	static char opname[32] = "operator ";
	char *o = opname + 9;
The problem is that "operator " is an *input* name, not just an output
name, and since the line parser has no quoting mechanism, you can't
type the name for anything (like setting breakpoints.)
	Simple fix: change "operator " to "operator", and change the 9
to 8. (actually, change the 9 to strlen(opname) ...)
						_Mark_
Technical Details
Message-ID: <1990Mar7.013609.21810@athena.mit.edu>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!bu.edu!bloom-beacon!eichin

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f5053,fc08e18e9e2ad999,start
X-Google-Attributes: gidf5053,public
X-Google-ArrivalTime: 1990-03-06 17:36:09 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!bu.edu!bloom-beacon!eichin
From: eichin@athena.mit.edu (Mark W. Eichin)
Newsgroups: gnu.gdb.bug
Subject: "misfeature" in c++ 'operator' naming (w/2 line fix)
Summary: can't type a space, so can't set a breakpoint
Message-ID: <1990Mar7.013609.21810@athena.mit.edu>
Date: 7 Mar 90 01:36:09 GMT
Sender: news@athena.mit.edu (News system)
Reply-To: eichin@athena.mit.edu (Mark W. Eichin)
Organization: Massachusetts Institute of Technology
Lines: 10
Posted: Wed Mar  7 02:36:09 1990