delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/10/26/18:43:13

Date: Wed, 26 Oct 1994 10:28:44 -0700 (PDT)
From: Gordon Hogenson <ghogenso AT u DOT washington DOT edu>
To: Duncan Sands <sands AT clipper DOT ens DOT fr>
Cc: djgpp <djgpp AT sun DOT soe DOT clarkson DOT edu>
Subject: Re: gdb/symify problems

On Wed, 26 Oct 1994, Duncan Sands wrote:

> When I use symify I just get a big mess.  This is for a C++ program compiled
> under 2.60 with the -g flag.  Also, gdb doesn't recognise class names and
> doesn't demangle.  For the class names it says to use `, but what does this
> mean? If anyone can help me out I'd be very grateful.  I suspect that these
> problems are due to my ignorance rather than anything else.
> 
> Thanks,
> 
> Duncan Sands.
> 

If you use 'symify' with C++ programs, you may want my 'enhanced'
version of symify.  You can get 'cxxify' from

ftp.u.washington.edu: /public/ghogenso/djgpp

This will cause symify's output to be demangled, so you see

Editor(const char*, int, int, int, int)

instead of

__6EditorPCciiii_

or some such nonsense.

As for gdb with C++, I haven't had any luck either.  Turning
on demangling has no effect, 'ptype' prints classes as
dumb structures, accessing elements of classes doesn't work
too well, etc.

Gordon


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019