From owner-freebsd-hackers Sun Jan 5 17:42:19 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id RAA28593 for hackers-outgoing; Sun, 5 Jan 1997 17:42:19 -0800 (PST) Received: from po1.glue.umd.edu (root@po1.glue.umd.edu [129.2.128.44]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id RAA28588 for ; Sun, 5 Jan 1997 17:42:17 -0800 (PST) Received: from ginger.eng.umd.edu (ginger.eng.umd.edu [129.2.103.20]) by po1.glue.umd.edu (8.8.3/8.7.3) with ESMTP id UAA27161; Sun, 5 Jan 1997 20:42:14 -0500 (EST) Received: from localhost (chuckr@localhost) by ginger.eng.umd.edu (8.8.3/8.7.3) with SMTP id UAA09379; Sun, 5 Jan 1997 20:42:13 -0500 (EST) X-Authentication-Warning: ginger.eng.umd.edu: chuckr owned process doing -bs Date: Sun, 5 Jan 1997 20:42:13 -0500 (EST) From: Chuck Robey X-Sender: chuckr@ginger.eng.umd.edu To: Josh MacDonald cc: freebsd-hackers@FreeBSD.org Subject: Re: demangling cplusplus names in ld output In-Reply-To: <199701060059.QAA27318@paris.CS.Berkeley.EDU> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk On Sun, 5 Jan 1997, Josh MacDonald wrote: > > I can't remember if FreeBSD's ld ever did demangle cpluplus names > in its output, but I took a look in the source directory today and > saw an extremenly old version of cplus-dem.c that was not even > being linked with the ld sources and probably wouldn't do much good > if it did. > > I certainly find it desirable, does anyone else? I've made the > neccesary modifications. It involves wrapping a function call > around the symbol->name field of each output statement, one small > new function, and linking in the file cplus-dem.c from the gcc > sources. > > Another approach requiring fewer modifications would be to fork a > c++filt and pipe the output. > > I am willing to make either of these modifications (I'd have to go > over my current sources with a little more scrutiny to make sure > I didn't break it). Peter Wemm set up c++filt on it's own, it's already part of current. > > -josh > ----------------------------+----------------------------------------------- Chuck Robey | Interests include any kind of voice or data chuckr@eng.umd.edu | communications topic, C programming, and Unix. 9120 Edmonston Ct #302 | Greenbelt, MD 20770 | I run Journey2 and picnic, both FreeBSD (301) 220-2114 | version 3.0 current -- and great FUN! ----------------------------+-----------------------------------------------